syscall.sh / s390x / socketpair
socketpair
create a pair of connected sockets
sys_socketpair(int family, int type, int protocol, int *usockvec)
| number | 360 (0x168) |
|---|---|
| abi | common |
| entry point | sys_socketpair |
| since | Linux 4.16 |
| man page | socketpair(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r1 | 360, the syscall number |
r2 | int family |
r3 | int type |
r4 | int protocol |
r5 | int *usockvec |
r2 | the return value |
Then run svc 0 to enter the kernel.
Same syscall on other architectures
- x64 53
- x86 360
- arm64 199
- arm 288
- riscv64 199
- x32 1073741877
- loongarch64 199
- ppc64 333
- ppc 333
- 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/s390x/socketpair