set_mempolicy on ia32

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 or earlier (3.3 is the first release scanned for ia32)
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.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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