mbind on arm64

set memory policy for a memory range

sys_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long *nmask, unsigned long maxnode, unsigned flags)
number235 (0xeb)
abicommon
entry pointsys_mbind
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagembind(2)
sourceelixir.bootlin.com

Registers

registervalue
x8235, the syscall number
x0unsigned long start
x1unsigned long len
x2unsigned long mode
x3const unsigned long *nmask
x4unsigned long maxnode
x5unsigned 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/mbind