syscall.sh / arm / 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)
number320 (0x140)
abicommon
entry pointsys_get_mempolicy
sinceLinux 4.10
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
r7320, the syscall number
r0int *policy
r1unsigned long *nmask
r2unsigned long maxnode
r3unsigned long addr
r4unsigned long flags
r0the 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/arm/get_mempolicy