Skip to main content

get_current_cpu_numa_node

Function get_current_cpu_numa_node 

Source
pub fn get_current_cpu_numa_node() -> NumaNode
Expand description

Get the current CPU’s NUMA node.

Uses the Linux getcpu syscall to determine which NUMA node the current CPU belongs to. Returns NumaNode::UNKNOWN if the syscall fails.