socket on score
create an endpoint for communication
sys_socket(int family, int type, int protocol)
| number | 198 (0xc6) |
|---|---|
| abi | common |
| entry point | sys_socket |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | socket(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 198, the syscall number |
r4 | int family |
r5 | int type |
r6 | int protocol |
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 41
- x86 359
- arm64 198
- arm 281
- riscv64 198
- ia32 359
- x32 1073741865
- loongarch64 198
- ppc64 326
- ppc 326
- s390x 359
- mips64 5040
- mipsn32 6040
- mipso32 4183
- alpha 97
- arc 198
- blackfin 329, removed in 4.17
- csky 198
- hexagon 198
- ia64 1190, removed in 6.7
- m68k 356
- metag 198, removed in 4.17
- microblaze 345
- nds32 198, removed in 5.18
- nios2 198
- openrisc 198
- parisc 17
- sh 340
- sparc 97
- sparc64 97
- tilegx 198, removed in 4.17
- tilepro 198, removed in 4.17
- xtensa 96
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/socket?kernel=all