syscall.sh / x86 / 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)
number276 (0x114)
abii386
entry pointsys_set_mempolicy
sinceLinux 3.3
man pageset_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
eax276, the syscall number
ebxint mode
ecxconst unsigned long *nmask
edxunsigned long maxnode
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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