arch_prctl on ia32

set architecture-specific thread state

sys_arch_prctl(int option, unsigned long arg2)
number384 (0x180)
abii386
entry pointsys_arch_prctl
sinceLinux 4.12
man pagearch_prctl(2)
sourceelixir.bootlin.com

Registers

registervalue
eax384, the syscall number
ebxint option
ecxunsigned long arg2
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/arch_prctl