syscall.sh / x32 / 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)
number1073742063 (0x400000ef)
abicommon
entry pointsys_get_mempolicy
sinceLinux 3.4
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742063, the syscall number
rdiint *policy
rsiunsigned long *nmask
rdxunsigned long maxnode
r10unsigned long addr
r8unsigned long flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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