Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
devfreq Struct Reference

#include <devfreq.h>

Data Fields

struct list_head node
 
struct mutex lock
 
struct device dev
 
struct devfreq_dev_profileprofile
 
struct devfreq_governorgovernor
 
struct notifier_block nb
 
unsigned long polling_jiffies
 
unsigned long previous_freq
 
unsigned int next_polling
 
voiddata
 
bool being_removed
 
unsigned long min_freq
 
unsigned long max_freq
 

Detailed Description

struct devfreq - Device devfreq structure list node - contains the devices with devfreq that have been registered. a mutex to protect accessing devfreq. device registered by devfreq class. dev.parent is the device using devfreq. device-specific devfreq profile method how to choose frequency based on the usage. notifier block used to notify devfreq object that it should reevaluate operable frequencies. Devfreq users may use devfreq.nb to the corresponding register notifier call chain. interval in jiffies. previously configured frequency value. the number of remaining jiffies to poll with "devfreq_monitor" executions to reevaluate frequency/voltage of the device. Set by profile's polling_ms interval. Private data of the governor. The devfreq framework does not touch this. a flag to mark that this object is being removed in order to prevent trying to remove the object multiple times. Limit minimum frequency requested by user (0: none) Limit maximum frequency requested by user (0: none)

This structure stores the devfreq information for a give device.

Note that when a governor accesses entries in struct devfreq in its functions except for the context of callbacks defined in struct devfreq_governor, the governor should protect its access with the struct mutex lock in struct devfreq. A governor may use this mutex to protect its own private data in void *data as well.

Definition at line 148 of file devfreq.h.

Field Documentation

bool being_removed

Definition at line 163 of file devfreq.h.

Definition at line 161 of file devfreq.h.

Definition at line 152 of file devfreq.h.

Definition at line 154 of file devfreq.h.

struct mutex lock

Definition at line 151 of file devfreq.h.

unsigned long max_freq

Definition at line 166 of file devfreq.h.

unsigned long min_freq

Definition at line 165 of file devfreq.h.

Definition at line 155 of file devfreq.h.

unsigned int next_polling

Definition at line 159 of file devfreq.h.

Definition at line 149 of file devfreq.h.

unsigned long polling_jiffies

Definition at line 157 of file devfreq.h.

unsigned long previous_freq

Definition at line 158 of file devfreq.h.

Definition at line 153 of file devfreq.h.


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