syscall.sh / arm64 / prctl

prctl

operations on a process or thread

sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
number167 (0xa7)
abicommon
entry pointsys_prctl
sinceLinux 3.7
man pageprctl(2)
sourceelixir.bootlin.com

Registers

registervalue
x8167, the syscall number
x0int option
x1unsigned long arg2
x2unsigned long arg3
x3unsigned long arg4
x4unsigned long arg5
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/prctl