syscall.sh / arm / prctl

prctl

operations on a process or thread

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

Registers

registervalue
r7172, the syscall number
r0int option
r1unsigned long arg2
r2unsigned long arg3
r3unsigned long arg4
r4unsigned long arg5
r0the 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/arm/prctl