socketpair on score
create a pair of connected sockets
sys_socketpair(int family, int type, int protocol, int *usockvec)
| number | 199 (0xc7) |
|---|---|
| abi | common |
| entry point | sys_socketpair |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | socketpair(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 199, the syscall number |
r4 | int family |
r5 | int type |
r6 | int protocol |
r7 | int *usockvec |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 53
- x86 360
- arm64 199
- arm 288
- riscv64 199
- ia32 360
- x32 1073741877
- loongarch64 199
- ppc64 333
- ppc 333
- s390x 360
- mips64 5052
- mipsn32 6052
- mipso32 4184
- alpha 135
- arc 199
- blackfin 330, removed in 4.17
- csky 199
- hexagon 199
- ia64 1197, removed in 6.7
- m68k 357
- metag 199, removed in 4.17
- microblaze 346
- nds32 199, removed in 5.18
- nios2 199
- openrisc 199
- parisc 56
- sh 347
- sparc 135
- sparc64 135
- tilegx 199, removed in 4.17
- tilepro 199, removed in 4.17
- xtensa 112
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/socketpair?kernel=all