Returns the CPU mask of a thread.
fn cpus(thread: i32, buf: &mut [u8]) -> Result<&mut CpuMask, Errno>
The thread to inspect or 0 for this thread.
0
The buffer in which the mask will be stored.
sched_getaffinity(2)