syscall.sh / arm64 / 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.7
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
x8236, the syscall number
x0int *policy
x1unsigned long *nmask
x2unsigned long maxnode
x3unsigned long addr
x4unsigned long flags
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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