syscall.sh / s390x / wait4

wait4

wait for process to change state, BSD style

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

Registers

registervalue
r1114, the syscall number
r2pid_t pid
r3int *stat_addr
r4int options
r5struct rusage *ru
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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