syscall.sh / sparc64 / 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)
number304 (0x130)
abicommon
entry pointsys_get_mempolicy
sinceLinux 5.0
man pageget_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
g1304, the syscall number
o0int *policy
o1unsigned long *nmask
o2unsigned long maxnode
o3unsigned long addr
o4unsigned long flags
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

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