cpusetSetPermFile(3x)cpusetSetPermFile(3x)NAMEcpusetSetPermFile - set the name of the file used to define the access
permissions for a cpuset.
SYNOPSIS
#include <cpuset.h>
int cpusetSetPermFile(cpuset_QueueDef_t *qdef, char *name);
DESCRIPTION
The cpusetSetPermFile function is used to set the name of the file used
to define access permissions for a cpuset. The argument qdef is a pointer
to a structure allocated by a call to cpusetAllocQueueDef(3x), and the
name of the file will be set in this structure.
The referenced qdef structure will later be used as an argument to the
function cpusetCreate(3x) to provide a description of the cpuset to be
created.
The return value of the function indicates if the function was
successfully executed.
NOTEScpusetSetPermFile is found in the library "libcpuset.so", and will be
loaded if the option -lcpuset is used with cc(1) or ld(1).
SEE ALSOcpuset(1), cpusetAllocQueueDef(3x), cpusetCreate(3x), cpuset(5).
DIAGNOSTICS
If successful, cpusetSetPermFile returns 1. If cpusetSetPermFile fails,
it returns 0 and errno is set to indicate the error. The possible values
for errno include those values as set by sysmp(2) and sbrk(2).
Page 1