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)
number121 (0x79)
abicommon
entry pointsys_wait4
sinceLinux 5.0
man pagewait4(2)
sourceelixir.bootlin.com

Registers

registervalue
a2121, the syscall number
a6pid_t pid
a3int *stat_addr
a4int options
a5struct rusage *ru
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/wait4