getpeername on tilepro
get name of connected peer socket
sys_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
| number | 205 (0xcd) |
|---|---|
| abi | common |
| entry point | sys_getpeername |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | getpeername(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 205, 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 52
- x86 368
- arm64 205
- arm 287
- riscv64 205
- ia32 368
- x32 1073741876
- loongarch64 205
- ppc64 332
- ppc 332
- s390x 368
- mips64 5051
- mipsn32 6051
- mipso32 4171
- alpha 141
- arc 205
- blackfin 317, removed in 4.17
- csky 205
- hexagon 205
- ia64 1196, removed in 6.7
- m68k 365
- metag 205, removed in 4.17
- microblaze 352
- nds32 205, removed in 5.18
- nios2 205
- openrisc 205
- parisc 53
- score 205, removed in 4.17
- sh 346
- sparc 141
- sparc64 141
- tilegx 205, removed in 4.17
- xtensa 105
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/getpeername?kernel=all