wait4 on score
wait for process to change state, BSD style
sys_wait4(pid_t pid, int *stat_addr, int options, struct rusage *ru)
| number | 260 (0x104) |
|---|---|
| abi | common |
| entry point | sys_wait4 |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | wait4(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 260, the syscall number |
r4 | pid_t pid |
r5 | int *stat_addr |
r6 | int options |
r7 | struct rusage *ru |
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 61
- x86 114
- arm64 260
- arm 114
- riscv64 260
- ia32 114
- x32 1073741885
- loongarch64 260
- ppc64 114
- ppc 114
- s390x 114
- mips64 5059
- mipsn32 6059
- mipso32 4114
- alpha 365
- arc 260
- blackfin 114, removed in 4.17
- cris 114, removed in 4.17
- csky 260
- frv 114, removed in 4.17
- hexagon 260
- ia64 1126, removed in 6.7
- m32r 114, removed in 4.17
- m68k 114
- metag 260, removed in 4.17
- microblaze 114
- mn10300 114, removed in 4.17
- nds32 260, removed in 5.18
- nios2 260
- openrisc 260
- parisc 114
- sh 114
- sparc 7
- sparc64 7
- tilegx 260, removed in 4.17
- tilepro 260, removed in 4.17
- xtensa 121
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/wait4?kernel=all