syscall.sh / arm / set_mempolicy

set_mempolicy

set default NUMA memory policy for a thread and its children

sys_set_mempolicy(int mode, const unsigned long *nmask, unsigned long maxnode)
number321 (0x141)
abicommon
entry pointsys_set_mempolicy
sinceLinux 4.10
man pageset_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
r7321, the syscall number
r0int mode
r1const unsigned long *nmask
r2unsigned long maxnode
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/set_mempolicy