getsockname on metag
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.9 or earlier (3.9 is the first release scanned for metag) |
| man page | getsockname(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 204, the syscall number |
D1Ar1 | int fd |
D0Ar2 | struct sockaddr *usockaddr |
D1Ar3 | int *usockaddr_len |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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
- 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
- tilepro 204, removed in 4.17
- xtensa 104
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/getsockname?kernel=all