setsockopt on tilegx
get and set options on sockets
sys_setsockopt(int fd, int level, int optname, char *optval, int optlen)
| number | 208 (0xd0) |
|---|---|
| abi | common |
| entry point | sys_setsockopt |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilegx) |
| man page | setsockopt(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 208, the syscall number |
r0 | int fd |
r1 | int level |
r2 | int optname |
r3 | char *optval |
r4 | int optlen |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error.
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 54
- x86 366
- arm64 208
- arm 294
- riscv64 208
- ia32 366
- x32 1073741878, 1073742365
- loongarch64 208
- ppc64 339
- ppc 339
- s390x 366
- mips64 5053
- mipsn32 6053
- mipso32 4181
- alpha 105
- arc 208
- blackfin 327, removed in 4.17
- csky 208
- hexagon 208
- ia64 1203, removed in 6.7
- m68k 363
- metag 208, removed in 4.17
- microblaze 357
- nds32 208, removed in 5.18
- nios2 208
- openrisc 208
- parisc 181
- score 208, removed in 4.17
- sh 353
- sparc 355
- sparc64 355
- tilepro 208, removed in 4.17
- xtensa 97
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilegx/setsockopt?kernel=all