cpu.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cpu_set_t
 

Macros

#define CPU_SETSIZE   0
 
#define CPU_ZERO(set)   (void)0
 
#define CPU_SET(cpu, set)   (void)0
 
#define CPU_CLR(cpu, set)   (void)0
 
#define CPU_ISSET(cpu, set)   false
 
#define CPU_COUNT(set)   CpuCount(set)
 
#define CPU_AND(destset, srcset1, srcset2)   CpuAnd((destset), (srcset1), (srcset2))
 

Functions

int sched_setaffinity (int, size_t, cpu_set_t *)
 
int sched_getaffinity (int, size_t, cpu_set_t *)
 
int CpuCount (const cpu_set_t *set)
 CPU_COUNT replacement. More...
 
void CpuAnd (cpu_set_t *destset, const cpu_set_t *srcset1, const cpu_set_t *srcset2)
 CPU_AND replacement. More...
 

Macro Definition Documentation

#define CPU_AND (   destset,
  srcset1,
  srcset2 
)    CpuAnd((destset), (srcset1), (srcset2))

Definition at line 68 of file cpu.h.

Referenced by CpuAffinitySet::apply().

#define CPU_CLR (   cpu,
  set 
)    (void)0

Definition at line 43 of file cpu.h.

Referenced by CpuAnd().

#define CPU_COUNT (   set)    CpuCount(set)

Definition at line 52 of file cpu.h.

Referenced by CpuAffinitySet::applied(), and CpuAffinitySet::apply().

#define CPU_ISSET (   cpu,
  set 
)    false

Definition at line 47 of file cpu.h.

Referenced by CpuAnd(), and CpuCount().

#define CPU_SET (   cpu,
  set 
)    (void)0

Definition at line 39 of file cpu.h.

Referenced by CpuAffinityMap::calculateSet(), and CpuAnd().

#define CPU_SETSIZE   0

Definition at line 31 of file cpu.h.

Referenced by CpuAnd(), and CpuCount().

#define CPU_ZERO (   set)    (void)0

Function Documentation

void CpuAnd ( cpu_set_t destset,
const cpu_set_t srcset1,
const cpu_set_t srcset2 
)
inline

Definition at line 71 of file cpu.h.

References CPU_CLR, CPU_ISSET, CPU_SET, CPU_SETSIZE, and i.

int CpuCount ( const cpu_set_t set)
inline

Definition at line 55 of file cpu.h.

References CPU_ISSET, CPU_SETSIZE, and i.

int sched_getaffinity ( int  ,
size_t  ,
cpu_set_t  
)
inline

Definition at line 27 of file cpu.h.

Referenced by CpuAffinitySet::apply().

int sched_setaffinity ( int  ,
size_t  ,
cpu_set_t  
)
inline

Definition at line 26 of file cpu.h.

Referenced by CpuAffinitySet::apply(), and CpuAffinitySet::undo().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors