syscall.sh / x32 / wait4

wait4

wait for process to change state, BSD style

sys_wait4(pid_t pid, int *stat_addr, int options, struct rusage *ru)
number1073741885 (0x4000003d)
abicommon
entry pointsys_wait4
sinceLinux 3.4
man pagewait4(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741885, the syscall number
rdipid_t pid
rsiint *stat_addr
rdxint options
r10struct rusage *ru
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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