syscall.sh / x86 / pkey_free
pkey_free
allocate or free a protection key
sys_pkey_free(int pkey)
| number | 382 (0x17e) |
|---|---|
| abi | i386 |
| entry point | sys_pkey_free |
| since | Linux 4.9 |
| man page | pkey_free(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 382, the syscall number |
ebx | int pkey |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 331
- arm64 290
- arm 396
- riscv64 290
- x32 1073742155
- loongarch64 290
- ppc64 385
- ppc 385
- s390x 386
- mips64 5325
- mipsn32 6329
- mipso32 4365
- alpha 526
- arc 290
- csky 290
- hexagon 290
- m68k 383
- microblaze 397
- nios2 290
- openrisc 290
- parisc 353
- sh 386
- sparc 364
- sparc64 364
- xtensa 350
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/pkey_free