pkey_alloc on ia32

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number381 (0x17d)
abii386
kconfigCONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
familypkeys
entry pointsys_pkey_alloc
sinceLinux 4.9
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
eax381, the syscall number
ebxunsigned long flags
ecxunsigned long init_val
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/pkey_alloc