syscall.sh / xtensa / wait4
wait4
wait for process to change state, BSD style
sys_wait4(pid_t pid, int *stat_addr, int options, struct rusage *ru)
| number | 121 (0x79) |
|---|---|
| abi | common |
| entry point | sys_wait4 |
| since | Linux 5.0 |
| man page | wait4(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 121, the syscall number |
a6 | pid_t pid |
a3 | int *stat_addr |
a4 | int options |
a5 | struct rusage *ru |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 61
- x86 114
- arm64 260
- arm 114
- riscv64 260
- x32 1073741885
- loongarch64 260
- ppc64 114
- ppc 114
- s390x 114
- mips64 5059
- mipsn32 6059
- mipso32 4114
- alpha 365
- arc 260
- csky 260
- hexagon 260
- m68k 114
- microblaze 114
- nios2 260
- openrisc 260
- parisc 114
- sh 114
- sparc 7
- sparc64 7
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/wait4