22 #define NO_OF_CPUS sysconf(_SC_NPROCESSORS_CONF)
24 #define checkStatus(status,message) \
26 errlogPrintf("%s error %s\n", (message), strerror((status))); \
40 void strToCpuset(cpu_set_t *cpuset,
const char *spec);
41 void cpusetToStr(
char *set,
size_t len,
const cpu_set_t *cpuset);
const char * policyToStr(const int policy)
Convert scheduling policy to string.
void cpusetToStr(char *set, size_t len, const cpu_set_t *cpuset)
Convert a cpuset into its string specification (e.g. "0,2-3").
void strToCpuset(cpu_set_t *cpuset, const char *spec)
Convert a cpuset string specification (e.g. "0,2-3") to a cpuset.
int strToPolicy(const char *string)
Convert string policy specification to policy.
epicsShareExtern int cpuDigits
Number of digits needed for a single CPU spec.