syscall.sh / m68k / 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 5.0
man pagewait4(2)
sourceelixir.bootlin.com

Registers

registervalue
d0114, the syscall number
d1pid_t pid
d2int *stat_addr
d3int options
d4struct rusage *ru
d0the 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/wait4