#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "cpufreq.h"
Go to the source code of this file.
|
| enum | cpufreq_value {
CPUINFO_CUR_FREQ,
CPUINFO_MIN_FREQ,
CPUINFO_MAX_FREQ,
CPUINFO_LATENCY,
SCALING_CUR_FREQ,
SCALING_MIN_FREQ,
SCALING_MAX_FREQ,
STATS_NUM_TRANSITIONS,
MAX_CPUFREQ_VALUE_READ_FILES
} |
| |
| enum | cpufreq_string { SCALING_DRIVER,
SCALING_GOVERNOR,
MAX_CPUFREQ_STRING_FILES
} |
| |
| enum | cpufreq_write {
WRITE_SCALING_MIN_FREQ,
WRITE_SCALING_MAX_FREQ,
WRITE_SCALING_GOVERNOR,
WRITE_SCALING_SET_SPEED,
MAX_CPUFREQ_WRITE_FILES
} |
| |
| #define MAX_LINE_LEN 4096 |
| #define SYSFS_PATH_MAX 255 |
- Enumerator:
| SCALING_DRIVER |
|
| SCALING_GOVERNOR |
|
| MAX_CPUFREQ_STRING_FILES |
|
Definition at line 141 of file sysfs.c.
- Enumerator:
| CPUINFO_CUR_FREQ |
|
| CPUINFO_MIN_FREQ |
|
| CPUINFO_MAX_FREQ |
|
| CPUINFO_LATENCY |
|
| SCALING_CUR_FREQ |
|
| SCALING_MIN_FREQ |
|
| SCALING_MAX_FREQ |
|
| STATS_NUM_TRANSITIONS |
|
| MAX_CPUFREQ_VALUE_READ_FILES |
|
Definition at line 90 of file sysfs.c.
- Enumerator:
| WRITE_SCALING_MIN_FREQ |
|
| WRITE_SCALING_MAX_FREQ |
|
| WRITE_SCALING_GOVERNOR |
|
| WRITE_SCALING_SET_SPEED |
|
| MAX_CPUFREQ_WRITE_FILES |
|
Definition at line 180 of file sysfs.c.
| int sysfs_cpu_exists |
( |
unsigned int |
cpu | ) |
|
| char* sysfs_get_freq_driver |
( |
unsigned int |
cpu | ) |
|
| unsigned long sysfs_get_freq_hardware |
( |
unsigned int |
cpu | ) |
|
| int sysfs_get_freq_hardware_limits |
( |
unsigned int |
cpu, |
|
|
unsigned long * |
min, |
|
|
unsigned long * |
max |
|
) |
| |
| unsigned long sysfs_get_freq_kernel |
( |
unsigned int |
cpu | ) |
|
| unsigned long sysfs_get_freq_transition_latency |
( |
unsigned int |
cpu | ) |
|
| unsigned long sysfs_get_freq_transitions |
( |
unsigned int |
cpu | ) |
|
| int sysfs_modify_freq_policy_governor |
( |
unsigned int |
cpu, |
|
|
char * |
governor |
|
) |
| |
| int sysfs_modify_freq_policy_max |
( |
unsigned int |
cpu, |
|
|
unsigned long |
max_freq |
|
) |
| |
| int sysfs_modify_freq_policy_min |
( |
unsigned int |
cpu, |
|
|
unsigned long |
min_freq |
|
) |
| |
| int sysfs_set_frequency |
( |
unsigned int |
cpu, |
|
|
unsigned long |
target_frequency |
|
) |
| |