pub struct NodeSet { /* private fields */ }Expand description
Compact set of NUMA node IDs (up to 64 nodes). Built directly into
a Linux nodemask word at mbind time. Bigger systems need a
dynamic representation; that’s not yet shipped.
Implementations§
Source§impl NodeSet
impl NodeSet
Sourcepub fn max_node_plus_one(&self) -> u32
pub fn max_node_plus_one(&self) -> u32
Highest node id set, plus one. 0 if the set is empty.
Informational only — the mbind path always passes
mbind_maxnode (a constant 64), not this
value. Exposed for callers that want to know the occupied range.
Sourcepub fn mbind_maxnode(&self) -> u32
pub fn mbind_maxnode(&self) -> u32
maxnode value to pass to mbind. mbind’s maxnode is the
number of bits in the nodemask; the kernel reads
ceil(maxnode / bits_per_long) words. We hand the kernel a single
u64, so maxnode = 64 makes it read exactly those 8 bytes —
independent of how many low bits are actually set.
Trait Implementations§
impl Copy for NodeSet
impl Eq for NodeSet
impl StructuralPartialEq for NodeSet
Auto Trait Implementations§
impl Freeze for NodeSet
impl RefUnwindSafe for NodeSet
impl Send for NodeSet
impl Sync for NodeSet
impl Unpin for NodeSet
impl UnsafeUnpin for NodeSet
impl UnwindSafe for NodeSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more