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

Registers

registervalue
a7236, the syscall number
a0int *policy
a1unsigned long *nmask
a2unsigned long maxnode
a3unsigned long addr
a4unsigned long flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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