syscall.sh / ppc / 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)
number260 (0x104)
abinospu
entry pointsys_get_mempolicy
sinceLinux 5.0
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
r0260, the syscall number
r3int *policy
r4unsigned long *nmask
r5unsigned long maxnode
r6unsigned long addr
r7unsigned long flags
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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