Lines Matching refs:field
189 /// `field` is the CPU id to test
190 pub fn is_set(&self, field: usize) -> Result<bool> {
191 if field >= CpuSet::count() {
194 Ok(unsafe { libc::CPU_ISSET(field, &self.cpu_set) })
199 /// `field` is the CPU id to add
200 pub fn set(&mut self, field: usize) -> Result<()> {
201 if field >= CpuSet::count() {
205 libc::CPU_SET(field, &mut self.cpu_set);
212 /// `field` is the CPU id to remove
213 pub fn unset(&mut self, field: usize) -> Result<()> {
214 if field >= CpuSet::count() {
218 libc::CPU_CLR(field, &mut self.cpu_set);