prctl on ia32

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 or earlier (3.3 is the first release scanned for ia32)
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.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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