EPICS Multi-Core Utilities
1.2.2-SNAPSHOT
Real-Time Utilities for EPICS IOCs on Multi-Core Linux
|
Utility functions for MCoreUtils. More...
#include <stdlib.h>
#include <stdio.h>
#include <sched.h>
#include <string.h>
#include <errlog.h>
#include "utils.h"
Go to the source code of this file.
Functions | |
void | strToCpuset (cpu_set_t *cpuset, const char *spec) |
Convert a cpuset string specification (e.g. "0,2-3") to a cpuset. | |
void | cpusetToStr (char *set, size_t len, const cpu_set_t *cpuset) |
Convert a cpuset into its string specification (e.g. "0,2-3"). | |
const char * | policyToStr (const int policy) |
Convert scheduling policy to string. | |
int | strToPolicy (const char *string) |
Convert string policy specification to policy. | |
Variables | |
epicsShareDef int | cpuDigits |
Number of digits needed for a single CPU spec. | |
Utility functions for MCoreUtils.
Definition in file utils.c.
void cpusetToStr | ( | char * | set, |
size_t | len, | ||
const cpu_set_t * | cpuset | ||
) |
const char* policyToStr | ( | const int | policy | ) |
void strToCpuset | ( | cpu_set_t * | cpuset, |
const char * | spec | ||
) |
int strToPolicy | ( | const char * | string | ) |
epicsShareDef int cpuDigits |
Number of digits needed for a single CPU spec.
Set in mcoreThreadShowInit().