Skip to main content

affinity_cpus

Function affinity_cpus 

Source
pub fn affinity_cpus(pid: u32) -> Option<u32>
Expand description

Observe the Linux scheduler-affinity CPU count for a PID. Returns None on another host or native query failure; fallback policy is caller-owned.