syscall.sh / mipso32 / waitpid
waitpid
wait for process to change state
sys_waitpid(pid_t pid, int *stat_addr, int options)
| number | 4007 (0xfa7) |
|---|---|
| abi | o32 |
| entry point | sys_waitpid |
| since | Linux 5.0 |
| man page | waitpid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4007, the syscall number |
a0 | pid_t pid |
a1 | int *stat_addr |
a2 | int options |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/waitpid