Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
driver.c File Reference
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/cpuidle.h>
#include "cpuidle.h"

Go to the source code of this file.

Functions

 DEFINE_SPINLOCK (cpuidle_driver_lock)
 
int cpuidle_register_driver (struct cpuidle_driver *drv)
 
 EXPORT_SYMBOL_GPL (cpuidle_register_driver)
 
struct cpuidle_drivercpuidle_get_driver (void)
 
 EXPORT_SYMBOL_GPL (cpuidle_get_driver)
 
void cpuidle_unregister_driver (struct cpuidle_driver *drv)
 
 EXPORT_SYMBOL_GPL (cpuidle_unregister_driver)
 
struct cpuidle_drivercpuidle_driver_ref (void)
 
void cpuidle_driver_unref (void)
 

Variables

int cpuidle_driver_refcount
 

Function Documentation

struct cpuidle_driver* cpuidle_driver_ref ( void  )
read

Definition at line 102 of file driver.c.

void cpuidle_driver_unref ( void  )

Definition at line 115 of file driver.c.

struct cpuidle_driver* cpuidle_get_driver ( void  )
read

cpuidle_get_driver - return the current driver

Definition at line 75 of file driver.c.

int cpuidle_register_driver ( struct cpuidle_driver drv)

cpuidle_register_driver - registers a driver : the driver

Definition at line 47 of file driver.c.

void cpuidle_unregister_driver ( struct cpuidle_driver drv)

cpuidle_unregister_driver - unregisters a driver : the driver

Definition at line 85 of file driver.c.

DEFINE_SPINLOCK ( cpuidle_driver_lock  )
EXPORT_SYMBOL_GPL ( cpuidle_register_driver  )
EXPORT_SYMBOL_GPL ( cpuidle_get_driver  )
EXPORT_SYMBOL_GPL ( cpuidle_unregister_driver  )

Variable Documentation

int cpuidle_driver_refcount

Definition at line 19 of file driver.c.