syscall.sh / xtensa / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number349 (0x15d)
abicommon
entry pointsys_pkey_alloc
sinceLinux 5.0
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
a2349, the syscall number
a6unsigned long flags
a3unsigned long init_val
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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