allow the manipulation of sets of CPUs available to processes, threads,
interrupts, jails and other resources.
These functions may manipulate sets of CPUs that contain many processes
or per-object anonymous masks that effect only a single object.
The valid values for the
arguments are documented in
These arguments specify which object and which set of the object we are
Not all possible combinations are valid.
For example, only processes may belong to a numbered set accessed by a
All resources, however, have a mask which may be manipulated with
Masks of type
are composed using the
The kernel tolerates large sets as long as all CPUs specified
in the set exist.
Sets smaller than the kernel uses generate an error on calls to
even if the result set would fit within the user supplied set.
tolerate small sets with no restrictions.
The supplied mask should have a size of
This size is usually provided by calling
which is ultimately determined by the value of
as defined in
.In sys/cpuset.h .
mask from the object specified by
and stores it in the space provided by
attempts to set the mask for the object specified by
to the value in