syscall.sh / m68k / waitpid
waitpid
wait for process to change state
sys_waitpid(pid_t pid, int *stat_addr, int options)
| number | 7 (0x7) |
|---|---|
| abi | common |
| entry point | sys_waitpid |
| since | Linux 5.0 |
| man page | waitpid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 7, the syscall number |
d1 | pid_t pid |
d2 | int *stat_addr |
d3 | int options |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/waitpid