libdvfs  2.0
A light library to set CPU governor and freqency
 All Data Structures Files Functions Variables Macros Pages
Data Fields
dvfs_core Struct Reference

Represents on core. More...

Data Fields

unsigned int id
 Core id as declared by Linux.
unsigned int nb_freqs
 Number of frequencies available for this core.
unsigned int * freqs
 Available frequencies for this core, sorted by increasing order.
FILE * fd_setf
 File descriptor toward the set_speed file.
FILE * fd_getf
 Descriptor toward the cur_freq file.
char init_gov [128]
 Governor used when core get initialised.
unsigned int init_freq
 Freqency used when core get initialised.
sem_t * sem
 Semaphore for sequentialization.

Detailed Description

Represents on core.

A core allows to control CPU Core governor and frequency.

Field Documentation

sem_t* sem

Semaphore for sequentialization.

Can be NULL.


The documentation for this struct was generated from the following file: