syscall.sh / mipso32 / 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)
number4270 (0x10ae)
abio32
entry pointsys_set_mempolicy
sinceLinux 5.0
man pageset_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
v04270, the syscall number
a0int mode
a1const unsigned long *nmask
a2unsigned long maxnode
v0the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/set_mempolicy