syscall.sh / parisc / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number352 (0x160)
abicommon
entry pointsys_pkey_alloc
sinceLinux 5.1
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
r20352, the syscall number
r26unsigned long flags
r25unsigned long init_val
r28the return value

Then run ble 0x100(%sr2, %r0) to enter the kernel.

Same syscall on other architectures

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