Convert a NUMA node set into a CPU set.
For each NUMA node included in the input nodeset
, set the corresponding local PUs in the output _cpuset
.
If some CPUs have no local NUMA nodes, this function never sets their indexes in the output CPU set, even if a full node set is given in input.
Hence the entire topology node set is converted into the set of all CPUs that have some local NUMA nodes.
- Returns
- 0 on success.
-
-1 with errno set to
ENOMEM
on internal reallocation failure.