syscall.sh / s390x / 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)
number270 (0x10e)
abicommon
entry pointsys_set_mempolicy
sinceLinux 4.16
man pageset_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
r1270, the syscall number
r2int mode
r3const unsigned long *nmask
r4unsigned long maxnode
r2the 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/s390x/set_mempolicy