set_mempolicy on arm64

set default NUMA memory policy for a thread and its children

sys_set_mempolicy(int mode, const unsigned long *nmask, unsigned long maxnode)
number237 (0xed)
abicommon
entry pointsys_set_mempolicy
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pageset_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
x8237, the syscall number
x0int mode
x1const unsigned long *nmask
x2unsigned long maxnode
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/set_mempolicy