| Defines | 
| #define | hwloc_cpuset_foreach_begin(cpu, set) | 
|  | Loop macro iterating on CPU set set.
 | 
| #define | hwloc_cpuset_foreach_end()   } | 
|  | End of loop. 
 | 
| Typedefs | 
| typedef struct hwloc_cpuset_s * | hwloc_cpuset_t | 
|  | Set of CPUs represented as an opaque pointer to an internal bitmask. 
 | 
| typedef struct hwloc_cpuset_s * | hwloc_const_cpuset_t | 
| Functions | 
| hwloc_cpuset_t | hwloc_cpuset_alloc (void) | 
|  | Allocate a new empty CPU set. 
 | 
| void | hwloc_cpuset_free (hwloc_cpuset_t set) | 
|  | Free CPU set set.
 | 
| hwloc_cpuset_t | hwloc_cpuset_dup (hwloc_cpuset_t set) | 
|  | Duplicate CPU set setby allocating a new CPU set and copying its contents.
 | 
| void | hwloc_cpuset_copy (hwloc_cpuset_t dst, hwloc_cpuset_t src) | 
|  | Copy the contents of CPU set srcinto the already allocated CPU setdst.
 | 
| int | hwloc_cpuset_snprintf (char *restrict buf, size_t buflen, hwloc_const_cpuset_t set) | 
|  | Stringify a cpuset. 
 | 
| int | hwloc_cpuset_asprintf (char **strp, hwloc_const_cpuset_t set) | 
|  | Stringify a cpuset into a newly allocated string. 
 | 
| hwloc_cpuset_t | hwloc_cpuset_from_string (const char *restrict string) | 
|  | Parse a cpuset string. 
 | 
| void | hwloc_cpuset_zero (hwloc_cpuset_t set) | 
|  | Primitives & macros for building, modifying and consulting "sets" of cpus. 
 | 
| void | hwloc_cpuset_fill (hwloc_cpuset_t set) | 
|  | Fill CPU set set.
 | 
| void | hwloc_cpuset_from_ulong (hwloc_cpuset_t set, unsigned long mask) | 
|  | Setup CPU set setfrom unsigned longmask.
 | 
| void | hwloc_cpuset_from_ith_ulong (hwloc_cpuset_t set, int i, unsigned long mask) | 
|  | Setup CPU set setfrom unsigned longmaskused asi-th subset.
 | 
| unsigned long | hwloc_cpuset_to_ulong (hwloc_const_cpuset_t set) | 
|  | Convert the beginning part of CPU set setinto unsigned longmask.
 | 
| unsigned long | hwloc_cpuset_to_ith_ulong (hwloc_const_cpuset_t set, int i) | 
|  | Convert the i-th subset of CPU setsetinto unsigned long mask.
 | 
| void | hwloc_cpuset_cpu (hwloc_cpuset_t set, unsigned cpu) | 
|  | Clear CPU set setand set CPUcpu.
 | 
| void | hwloc_cpuset_all_but_cpu (hwloc_cpuset_t set, unsigned cpu) | 
|  | Clear CPU set setand set all but the CPUcpu.
 | 
| void | hwloc_cpuset_set (hwloc_cpuset_t set, unsigned cpu) | 
|  | Add CPU cpuin CPU setset.
 | 
| void | hwloc_cpuset_set_range (hwloc_cpuset_t set, unsigned begincpu, unsigned endcpu) | 
|  | Add CPUs from begincputoendcpuin CPU setset.
 | 
| void | hwloc_cpuset_clr (hwloc_cpuset_t set, unsigned cpu) | 
|  | Remove CPU cpufrom CPU setset.
 | 
| int | hwloc_cpuset_isset (hwloc_const_cpuset_t set, unsigned cpu) | 
|  | Test whether CPU cpuis part of setset.
 | 
| int | hwloc_cpuset_iszero (hwloc_const_cpuset_t set) | 
|  | Test whether set setis zero.
 | 
| int | hwloc_cpuset_isfull (hwloc_const_cpuset_t set) | 
|  | Test whether set setis full.
 | 
| int | hwloc_cpuset_isequal (hwloc_const_cpuset_t set1, hwloc_const_cpuset_t set2) | 
|  | Test whether set set1is equal to setset2.
 | 
| int | hwloc_cpuset_intersects (hwloc_const_cpuset_t set1, hwloc_const_cpuset_t set2) | 
|  | Test whether sets set1andset2intersects.
 | 
| int | hwloc_cpuset_isincluded (hwloc_const_cpuset_t sub_set, hwloc_const_cpuset_t super_set) | 
|  | Test whether set sub_setis part of setsuper_set.
 | 
| void | hwloc_cpuset_orset (hwloc_cpuset_t set, hwloc_const_cpuset_t modifier_set) | 
|  | Or set modifier_setinto setset.
 | 
| void | hwloc_cpuset_andset (hwloc_cpuset_t set, hwloc_const_cpuset_t modifier_set) | 
|  | And set modifier_setinto setset.
 | 
| void | hwloc_cpuset_clearset (hwloc_cpuset_t set, hwloc_const_cpuset_t modifier_set) | 
|  | Clear set modifier_setout of setset.
 | 
| void | hwloc_cpuset_xorset (hwloc_cpuset_t set, hwloc_const_cpuset_t modifier_set) | 
|  | Xor set setwith setmodifier_set.
 | 
| int | hwloc_cpuset_first (hwloc_const_cpuset_t set) | 
|  | Compute the first CPU (least significant bit) in CPU set set.
 | 
| int | hwloc_cpuset_last (hwloc_const_cpuset_t set) | 
|  | Compute the last CPU (most significant bit) in CPU set set.
 | 
| void | hwloc_cpuset_singlify (hwloc_cpuset_t set) | 
|  | Keep a single CPU among those set in CPU set set.
 | 
| int | hwloc_cpuset_compar_first (hwloc_const_cpuset_t set1, hwloc_const_cpuset_t set2) | 
|  | Compar CPU sets set1andset2using their first set bit.
 | 
| int | hwloc_cpuset_compar (hwloc_const_cpuset_t set1, hwloc_const_cpuset_t set2) | 
|  | Compar CPU sets set1andset2using their last bits.
 | 
| int | hwloc_cpuset_weight (hwloc_const_cpuset_t set) | 
|  | Compute the weight of CPU set set.
 | 
The Cpuset API, for use in hwloc itself.