getsockopt on tilepro
get and set options on sockets
sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
| number | 209 (0xd1) |
|---|---|
| abi | common |
| entry point | sys_getsockopt |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | getsockopt(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 209, 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 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 55
- x86 365
- arm64 209
- arm 295
- riscv64 209
- ia32 365
- x32 1073741879, 1073742366
- loongarch64 209
- ppc64 340
- ppc 340
- s390x 365
- mips64 5054
- mipsn32 6054
- mipso32 4173
- alpha 118
- arc 209
- blackfin 319, removed in 4.17
- csky 209
- hexagon 209
- ia64 1204, removed in 6.7
- m68k 362
- metag 209, removed in 4.17
- microblaze 358
- nds32 209, removed in 5.18
- nios2 209
- openrisc 209
- parisc 182
- score 209, removed in 4.17
- sh 354
- sparc 118
- sparc64 118
- tilegx 209, removed in 4.17
- xtensa 98
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/getsockopt?kernel=all