Lines Matching refs:cpu_set
175 cpu_set: libc::cpu_set_t,
177 cpu_set: libc::cpuset_t,
184 cpu_set: unsafe { mem::zeroed() },
194 Ok(unsafe { libc::CPU_ISSET(field, &self.cpu_set) })
205 libc::CPU_SET(field, &mut self.cpu_set);
218 libc::CPU_CLR(field, &mut self.cpu_set);
258 /// let mut cpu_set = CpuSet::new();
259 /// cpu_set.set(0).unwrap();
260 /// sched_setaffinity(Pid::from_raw(0), &cpu_set).unwrap();
267 &cpuset.cpu_set,
291 /// let cpu_set = sched_getaffinity(Pid::from_raw(0)).unwrap();
292 /// if cpu_set.is_set(0).unwrap() {
302 &mut cpuset.cpu_set,