Skip to main content

read

Function read 

Source
pub fn read(pid: u32, cores: usize) -> Result<Option<CpuMask>, String>
Expand description

Read the affinity mask of pid.

Returns Ok(None) where the platform has no readable mask: that is a fact about the OS, not an error.