syscall.sh / arm64 / wait4

wait4

wait for process to change state, BSD style

sys_wait4(pid_t pid, int *stat_addr, int options, struct rusage *ru)
number260 (0x104)
abi64
entry pointsys_wait4
sinceLinux 3.7
man pagewait4(2)
sourceelixir.bootlin.com

Registers

registervalue
x8260, the syscall number
x0pid_t pid
x1int *stat_addr
x2int options
x3struct rusage *ru
x0the 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/arm64/wait4