getsockname on score
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 score) |
| man page | getsockname(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 204, the syscall number |
r4 | int fd |
r5 | struct sockaddr *usockaddr |
r6 | int *usockaddr_len |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
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
- sh 345
- sparc 150
- sparc64 150
- tilegx 204, removed in 4.17
- tilepro 204, removed in 4.17
- xtensa 104
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/getsockname?kernel=all