nc 0.9.7

Access system calls directly
Documentation
1
2
3
4
5
6
/// Creates a new set containing the same CPUs as the root set of the current process
/// and stores its id in the space provided by `setid`.
pub unsafe fn cpuset(setid: &mut cpuset_t) -> Result<(), Errno> {
    let setid_ptr = setid as *mut cpuset_t as usize;
    syscall1(SYS_CPUSET, setid_ptr).map(drop)
}