accept on metag
accept a connection on a socket
sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
| number | 202 (0xca) |
|---|---|
| abi | common |
| entry point | sys_accept |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | accept(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 202, the syscall number |
D1Ar1 | int fd |
D0Ar2 | struct sockaddr *upeer_sockaddr |
D1Ar3 | int *upeer_addrlen |
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 43
- arm64 202
- arm 285
- riscv64 202
- x32 1073741867
- loongarch64 202
- ppc64 330
- ppc 330
- mips64 5042
- mipsn32 6042
- mipso32 4168
- alpha 99
- arc 202
- blackfin 314, removed in 4.17
- csky 202
- hexagon 202
- ia64 1194, removed in 6.7
- microblaze 349
- nds32 202, removed in 5.18
- nios2 202
- openrisc 202
- parisc 35
- score 202, removed in 4.17
- sh 344
- sparc 99
- sparc64 99
- tilegx 202, removed in 4.17
- tilepro 202, removed in 4.17
- xtensa 103
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/accept?kernel=all