get_mempolicy on ia32

retrieve NUMA memory policy for a thread

sys_get_mempolicy(int *policy, unsigned long *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)
number275 (0x113)
abii386
entry pointsys_get_mempolicy
sinceLinux 3.3 or earlier (3.3 is the first release scanned for ia32)
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
eax275, the syscall number
ebxint *policy
ecxunsigned long *nmask
edxunsigned long maxnode
esiunsigned long addr
ediunsigned long flags
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/get_mempolicy