syscall.sh / ppc / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number384 (0x180)
abinospu
entry pointsys_pkey_alloc
sinceLinux 5.0
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
r0384, the syscall number
r3unsigned long flags
r4unsigned long init_val
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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