syscall.sh / sparc64 / waitpid
waitpid
wait for process to change state
sys_waitpid(pid_t pid, int *stat_addr, int options)
| number | 212 (0xd4) |
|---|---|
| abi | common |
| entry point | sys_waitpid |
| since | Linux 5.0 |
| man page | waitpid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 212, the syscall number |
o0 | pid_t pid |
o1 | int *stat_addr |
o2 | int options |
o0 | the return value |
Then run t 0x6d to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc64/waitpid