syscall.sh / nios2 / 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)
number236 (0xec)
abicommon
entry pointsys_get_mempolicy
sinceLinux 3.19
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
r2236, the syscall number
r4int *policy
r5unsigned long *nmask
r6unsigned long maxnode
r7unsigned long addr
r8unsigned long flags
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/nios2/get_mempolicy