cpuset_t
cpuset_create(
void
)
void
cpuset_destroy(
cpuset_t *set
)
void
cpuset_zero(
cpuset_t *set
)
int
cpuset_set(
cpuid_t cpu
, cpuset_t *set
)
int
cpuset_clr(
cpuid_t cpu
, cpuset_t *set
)
int
cpuset_isset(
cpuid_t cpu
, const cpuset_t *set
)
size_t
cpuset_size(
const cpuset_t *set
)
This API can be used with the POSIX threads, see pthread(3) and affinity(3).
The ID of the primary CPU in the system is 0.
)
NULL
on failure.
set
)
set
.
set
)
set
clean, that is, memory is initialized to zero bytes, and none of
the CPUs set.
cpu
, set
)
cpu
in
set
.
Returns zero on success, and -1 if
cpu
is invalid.
cpu
, set
)
cpu
in the CPU-set
set
.
Returns zero on success, and -1 if
cpu
is invalid.
cpu
, set
)
cpu
is set in the CPU-set
set
.
Returns the positive number if set, zero if not set, and -1 if
cpu
is invalid.
set
)
set
.