syscall.sh / csky / 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 4.20
man pageprctl(2)
sourceelixir.bootlin.com

Registers

registervalue
r7167, the syscall number
a0int option
a1unsigned long arg2
a2unsigned long arg3
a3unsigned long arg4
r4unsigned long arg5
a0the 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/csky/prctl