#include <linux/kernel.h>
#include <linux/cpuidle.h>
#include <linux/sysfs.h>
#include <linux/slab.h>
#include <linux/cpu.h>
#include <linux/capability.h>
#include "cpuidle.h"
Go to the source code of this file.
|
#define | define_one_ro(_name, show) static struct cpuidle_attr attr_##_name = __ATTR(_name, 0444, show, NULL) |
|
#define | define_one_rw(_name, show, store) static struct cpuidle_attr attr_##_name = __ATTR(_name, 0644, show, store) |
|
#define | kobj_to_cpuidledev(k) container_of(k, struct cpuidle_device, kobj) |
|
#define | attr_to_cpuidleattr(a) container_of(a, struct cpuidle_attr, attr) |
|
#define | define_one_state_ro(_name, show) static struct cpuidle_state_attr attr_##_name = __ATTR(_name, 0444, show, NULL) |
|
#define | define_one_state_rw(_name, show, store) static struct cpuidle_state_attr attr_##_name = __ATTR(_name, 0644, show, store) |
|
#define | define_show_state_function(_name) |
|
#define | define_store_state_ull_function(_name) |
|
#define | define_show_state_ull_function(_name) |
|
#define | define_show_state_str_function(_name) |
|
#define | kobj_to_state_obj(k) container_of(k, struct cpuidle_state_kobj, kobj) |
|
#define | kobj_to_state(k) (kobj_to_state_obj(k)->state) |
|
#define | kobj_to_state_usage(k) (kobj_to_state_obj(k)->state_usage) |
|
#define | attr_to_stateattr(a) container_of(a, struct cpuidle_state_attr, attr) |
|
#define define_show_state_function |
( |
|
_name | ) |
|
#define define_show_state_str_function |
( |
|
_name | ) |
|
Value:
{ \
if (
state->_name[0] ==
'\0')\
}
Definition at line 263 of file sysfs.c.
#define define_show_state_ull_function |
( |
|
_name | ) |
|
Value:
{ \
return
sprintf(
buf,
"%llu\n", state_usage->_name);\
}
Definition at line 256 of file sysfs.c.
#define define_store_state_ull_function |
( |
|
_name | ) |
|
Value:
{ \
unsigned
long long value; \
if (err) \
if (value) \
state_usage->_name = 1; \
else \
state_usage->_name = 0; \
}
Definition at line 237 of file sysfs.c.
__setup |
( |
"cpuidle_sysfs_switch" |
, |
|
|
cpuidle_sysfs_setup |
|
|
) |
| |
cpuidle_add_interface - add CPU global sysfs attributes
Definition at line 141 of file sysfs.c.
cpuidle_add_driver_sysfs - adds driver-specific sysfs attributes : the target device
Definition at line 362 of file sysfs.c.
cpuidle_add_sysfs - creates a sysfs instance for the target device : the target device
Definition at line 411 of file sysfs.c.
cpuidle_remove_interface - remove CPU global sysfs attributes
Definition at line 152 of file sysfs.c.
cpuidle_remove_driver_sysfs - removes driver-specific sysfs attributes : the target device
Definition at line 399 of file sysfs.c.
cpuidle_remove_sysfs - deletes a sysfs instance on the target device : the target device
Definition at line 429 of file sysfs.c.
define_show_state_function |
( |
exit_latency |
| ) |
|