syscall.sh / openrisc / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number289 (0x121)
abicommon
entry pointsys_pkey_alloc
sinceLinux 4.9
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
r11289, the syscall number
r3unsigned long flags
r4unsigned long init_val
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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