Lines Matching refs:CpuSet
55 pub struct CpuSet { struct
59 impl CpuSet { implementation
61 pub fn new() -> CpuSet { in new()
62 CpuSet { in new()
70 if field >= CpuSet::count() { in is_set()
80 if field >= CpuSet::count() { in set()
91 if field >= CpuSet::count() { in unset()
105 impl Default for CpuSet { implementation
132 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity()
136 mem::size_of::<CpuSet>() as libc::size_t, in sched_setaffinity()
166 pub fn sched_getaffinity(pid: Pid) -> Result<CpuSet> { in sched_getaffinity() argument
167 let mut cpuset = CpuSet::new(); in sched_getaffinity()
171 mem::size_of::<CpuSet>() as libc::size_t, in sched_getaffinity()