getsockname on tilepro
get socket name
sys_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
| number | 204 (0xcc) |
|---|---|
| abi | common |
| entry point | sys_getsockname |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | getsockname(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 204, the syscall number |
r0 | int fd |
r1 | struct sockaddr *usockaddr |
r2 | int *usockaddr_len |
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 51
- x86 367
- arm64 204
- arm 286
- riscv64 204
- ia32 367
- x32 1073741875
- loongarch64 204
- ppc64 331
- ppc 331
- s390x 367
- mips64 5050
- mipsn32 6050
- mipso32 4172
- alpha 150
- arc 204
- blackfin 318, removed in 4.17
- csky 204
- hexagon 204
- ia64 1195, removed in 6.7
- m68k 364
- metag 204, removed in 4.17
- microblaze 351
- nds32 204, removed in 5.18
- nios2 204
- openrisc 204
- parisc 44
- score 204, removed in 4.17
- sh 345
- sparc 150
- sparc64 150
- tilegx 204, removed in 4.17
- xtensa 104
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/getsockname?kernel=all