Skip to main content

cpu_node

Function cpu_node 

Source
fn cpu_node(cpu: u32) -> Option<u32>
Expand description

Node of one CPU with None on fault. Reads the NUMA view through the per CPU node links with a fallback to the node cpulists, so package ids never shape placement. A missing link plus a missing cpulist means unknown, so the caller folds to zero with no panic.