|
NAMEcpuset_getaffinity ,
cpuset_setaffinity —
manage CPU affinity
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/param.h>
#include <sys/cpuset.h>
int
int
DESCRIPTIONcpuset_getaffinity () and
cpuset_setaffinity () 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 level and
which arguments are documented in
cpuset(2).
These arguments specify which object and which set of the object we are
referring to. Not all possible combinations are valid. For example, only
processes may belong to a numbered set accessed by a
level argument of
Masks of type cpuset_t are composed using
the The supplied mask should have a size of
setsize bytes. This size is usually provided by
calling
RETURN VALUESUpon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.ERRORSThe following error codes may be set in errno:
SEE ALSOcpuset(1), cpuset(2), cpuset_getdomain(2), cpuset_getid(2), cpuset_setdomain(2), cpuset_setid(2), pthread_affinity_np(3), pthread_attr_affinity_np(3), capsicum(4), cpuset(9)HISTORYThecpuset_getaffinity family of system calls first
appeared in FreeBSD 7.1.
AUTHORSJeffrey Roberson <jeff@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |