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