syscall.sh / x86 / get_mempolicy

get_mempolicy

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
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.

Same syscall on other architectures

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