Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sysfs.h File Reference

Go to the source code of this file.

Macros

#define PATH_TO_CPU   "/sys/devices/system/cpu/"
 
#define MAX_LINE_LEN   255
 
#define SYSFS_PATH_MAX   255
 

Functions

unsigned int sysfs_read_file (const char *path, char *buf, size_t buflen)
 
int sysfs_is_cpu_online (unsigned int cpu)
 
unsigned long sysfs_get_idlestate_latency (unsigned int cpu, unsigned int idlestate)
 
unsigned long sysfs_get_idlestate_usage (unsigned int cpu, unsigned int idlestate)
 
unsigned long long sysfs_get_idlestate_time (unsigned int cpu, unsigned int idlestate)
 
charsysfs_get_idlestate_name (unsigned int cpu, unsigned int idlestate)
 
charsysfs_get_idlestate_desc (unsigned int cpu, unsigned int idlestate)
 
int sysfs_get_idlestate_count (unsigned int cpu)
 
charsysfs_get_cpuidle_governor (void)
 
charsysfs_get_cpuidle_driver (void)
 
int sysfs_get_sched (const char *smt_mc)
 
int sysfs_set_sched (const char *smt_mc, int val)
 

Macro Definition Documentation

#define MAX_LINE_LEN   255

Definition at line 5 of file sysfs.h.

#define PATH_TO_CPU   "/sys/devices/system/cpu/"

Definition at line 4 of file sysfs.h.

#define SYSFS_PATH_MAX   255

Definition at line 6 of file sysfs.h.

Function Documentation

char* sysfs_get_cpuidle_driver ( void  )

Definition at line 351 of file sysfs.c.

char* sysfs_get_cpuidle_governor ( void  )

Definition at line 342 of file sysfs.c.

int sysfs_get_idlestate_count ( unsigned int  cpu)

Definition at line 260 of file sysfs.c.

char* sysfs_get_idlestate_desc ( unsigned int  cpu,
unsigned int  idlestate 
)

Definition at line 250 of file sysfs.c.

unsigned long sysfs_get_idlestate_latency ( unsigned int  cpu,
unsigned int  idlestate 
)

Definition at line 227 of file sysfs.c.

char* sysfs_get_idlestate_name ( unsigned int  cpu,
unsigned int  idlestate 
)

Definition at line 245 of file sysfs.c.

unsigned long long sysfs_get_idlestate_time ( unsigned int  cpu,
unsigned int  idlestate 
)

Definition at line 239 of file sysfs.c.

unsigned long sysfs_get_idlestate_usage ( unsigned int  cpu,
unsigned int  idlestate 
)

Definition at line 233 of file sysfs.c.

int sysfs_get_sched ( const char smt_mc)

Definition at line 363 of file sysfs.c.

int sysfs_is_cpu_online ( unsigned int  cpu)

Definition at line 67 of file sysfs.c.

unsigned int sysfs_read_file ( const char path,
char buf,
size_t  buflen 
)

Definition at line 19 of file sysfs.c.

int sysfs_set_sched ( const char smt_mc,
int  val 
)

Definition at line 374 of file sysfs.c.