syscall.sh / sh / 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)
number275 (0x113)
abicommon
entry pointsys_get_mempolicy
sinceLinux 5.0
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
r3275, the syscall number
r4int *policy
r5unsigned long *nmask
r6unsigned long maxnode
r7unsigned long addr
r0unsigned long flags
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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