accept4 on tilepro
accept a connection on a socket
sys_accept4(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen, int flags)
| number | 242 (0xf2) |
|---|---|
| abi | common |
| entry point | sys_accept4 |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | accept4(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 242, the syscall number |
r0 | int fd |
r1 | struct sockaddr *upeer_sockaddr |
r2 | int *upeer_addrlen |
r3 | int flags |
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 288
- x86 364
- arm64 242
- arm 366
- riscv64 242
- ia32 364
- x32 1073742112
- loongarch64 242
- ppc64 344
- ppc 344
- s390x 364
- mips64 5293
- mipsn32 6297
- mipso32 4334
- alpha 502
- arc 242
- cris 341, removed in 4.17
- csky 242
- hexagon 242
- ia64 1334, removed in 6.7
- m68k 361
- metag 242, removed in 4.17
- microblaze 362
- nds32 242, removed in 5.18
- nios2 242
- openrisc 242
- parisc 320
- score 242, removed in 4.17
- sh 358
- sparc 323
- sparc64 323
- tilegx 242, removed in 4.17
- xtensa 333
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/accept4?kernel=all