syscall.sh / mipsn32 / wait4
wait4
wait for process to change state, BSD style
compat_sys_wait4(pid_t pid, int *stat_addr, int options, struct rusage *ru)
| number | 6059 (0x17ab) |
|---|---|
| abi | n32 |
| entry point | compat_sys_wait4 |
| since | Linux 5.0 |
| man page | wait4(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6059, the syscall number |
a0 | pid_t pid |
a1 | int *stat_addr |
a2 | int options |
a3 | struct rusage *ru |
v0 | 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
- 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
- xtensa 121
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/wait4