pkey_free on ia32

allocate or free a protection key

sys_pkey_free(int pkey)
number382 (0x17e)
abii386
kconfigCONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
familypkeys
entry pointsys_pkey_free
sinceLinux 4.9
man pagepkey_free(2)
sourceelixir.bootlin.com

Registers

registervalue
eax382, the syscall number
ebxint pkey
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_free