socket on tilepro
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 tilepro) |
| man page | socket(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 198, the syscall number |
r0 | int family |
r1 | int type |
r2 | int protocol |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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
- score 198, removed in 4.17
- sh 340
- sparc 97
- sparc64 97
- tilegx 198, removed in 4.17
- xtensa 96
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/socket?kernel=all