syscall.sh / arm / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number395 (0x18b)
abicommon
entry pointsys_pkey_alloc
sinceLinux 4.10
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
r7395, the syscall number
r0unsigned long flags
r1unsigned long init_val
r0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm/pkey_alloc