syscall.sh / x32 / socketpair
socketpair
create a pair of connected sockets
sys_socketpair(int family, int type, int protocol, int *usockvec)
| number | 1073741877 (0x40000035) |
|---|---|
| abi | common |
| entry point | sys_socketpair |
| since | Linux 3.4 |
| man page | socketpair(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741877, the syscall number |
rdi | int family |
rsi | int type |
rdx | int protocol |
r10 | int *usockvec |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 53
- x86 360
- arm64 199
- arm 288
- riscv64 199
- loongarch64 199
- ppc64 333
- ppc 333
- s390x 360
- mips64 5052
- mipsn32 6052
- mipso32 4184
- alpha 135
- arc 199
- csky 199
- hexagon 199
- m68k 357
- microblaze 346
- nios2 199
- openrisc 199
- parisc 56
- sh 347
- sparc 135
- sparc64 135
- xtensa 112
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/socketpair