syscall.sh / xtensa / pkey_mprotect

pkey_mprotect

set protection on a region of memory

sys_pkey_mprotect(unsigned long start, size_t len, unsigned long prot, int pkey)
number348 (0x15c)
abicommon
entry pointsys_pkey_mprotect
sinceLinux 5.0
man pagepkey_mprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
a2348, the syscall number
a6unsigned long start
a3size_t len
a4unsigned long prot
a5int pkey
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_mprotect