syscall.sh / xtensa / get_mempolicy

get_mempolicy

retrieve NUMA memory policy for a thread

sys_get_mempolicy(int *policy, unsigned long *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)
number264 (0x108)
abicommon
entry pointsys_get_mempolicy
sinceLinux 5.0
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
a2264, the syscall number
a6int *policy
a3unsigned long *nmask
a4unsigned long maxnode
a5unsigned long addr
a8unsigned long flags
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/get_mempolicy