syscall.sh / sparc64 / pkey_alloc

pkey_alloc

allocate or free a protection key

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

Registers

registervalue
g1363, the syscall number
o0unsigned long flags
o1unsigned long init_val
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

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