syscall.sh / x86 / 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)
abii386
entry pointsys_prctl
sinceLinux 3.3
man pageprctl(2)
sourceelixir.bootlin.com

Registers

registervalue
eax172, the syscall number
ebxint option
ecxunsigned long arg2
edxunsigned long arg3
esiunsigned long arg4
ediunsigned long arg5
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/prctl