pub fn read(pid: u32, cores: usize) -> Result<Option<CpuMask>, String>
Read the affinity mask of pid.
pid
Returns Ok(None) where the platform has no readable mask: that is a fact about the OS, not an error.
Ok(None)