Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
led-triggers.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/device.h>
#include <linux/timer.h>
#include <linux/rwsem.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include "leds.h"

Go to the source code of this file.

Functions

ssize_t led_trigger_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
 
 EXPORT_SYMBOL_GPL (led_trigger_store)
 
ssize_t led_trigger_show (struct device *dev, struct device_attribute *attr, char *buf)
 
 EXPORT_SYMBOL_GPL (led_trigger_show)
 
void led_trigger_set (struct led_classdev *led_cdev, struct led_trigger *trig)
 
 EXPORT_SYMBOL_GPL (led_trigger_set)
 
void led_trigger_remove (struct led_classdev *led_cdev)
 
 EXPORT_SYMBOL_GPL (led_trigger_remove)
 
void led_trigger_set_default (struct led_classdev *led_cdev)
 
 EXPORT_SYMBOL_GPL (led_trigger_set_default)
 
int led_trigger_register (struct led_trigger *trig)
 
 EXPORT_SYMBOL_GPL (led_trigger_register)
 
void led_trigger_unregister (struct led_trigger *trig)
 
 EXPORT_SYMBOL_GPL (led_trigger_unregister)
 
void led_trigger_event (struct led_trigger *trig, enum led_brightness brightness)
 
 EXPORT_SYMBOL_GPL (led_trigger_event)
 
void led_trigger_blink (struct led_trigger *trig, unsigned long *delay_on, unsigned long *delay_off)
 
 EXPORT_SYMBOL_GPL (led_trigger_blink)
 
void led_trigger_blink_oneshot (struct led_trigger *trig, unsigned long *delay_on, unsigned long *delay_off, int invert)
 
 EXPORT_SYMBOL_GPL (led_trigger_blink_oneshot)
 
void led_trigger_register_simple (const char *name, struct led_trigger **tp)
 
 EXPORT_SYMBOL_GPL (led_trigger_register_simple)
 
void led_trigger_unregister_simple (struct led_trigger *trig)
 
 EXPORT_SYMBOL_GPL (led_trigger_unregister_simple)
 
 MODULE_AUTHOR ("Richard Purdie")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("LED Triggers Core")
 

Function Documentation

EXPORT_SYMBOL_GPL ( led_trigger_store  )
EXPORT_SYMBOL_GPL ( led_trigger_show  )
EXPORT_SYMBOL_GPL ( led_trigger_set  )
EXPORT_SYMBOL_GPL ( led_trigger_remove  )
EXPORT_SYMBOL_GPL ( led_trigger_set_default  )
EXPORT_SYMBOL_GPL ( led_trigger_register  )
EXPORT_SYMBOL_GPL ( led_trigger_unregister  )
EXPORT_SYMBOL_GPL ( led_trigger_event  )
EXPORT_SYMBOL_GPL ( led_trigger_blink  )
EXPORT_SYMBOL_GPL ( led_trigger_blink_oneshot  )
EXPORT_SYMBOL_GPL ( led_trigger_register_simple  )
EXPORT_SYMBOL_GPL ( led_trigger_unregister_simple  )
void led_trigger_blink ( struct led_trigger *  trig,
unsigned long delay_on,
unsigned long delay_off 
)

Definition at line 273 of file led-triggers.c.

void led_trigger_blink_oneshot ( struct led_trigger *  trig,
unsigned long delay_on,
unsigned long delay_off,
int  invert 
)

Definition at line 281 of file led-triggers.c.

void led_trigger_event ( struct led_trigger *  trig,
enum led_brightness  brightness 
)

Definition at line 229 of file led-triggers.c.

int led_trigger_register ( struct led_trigger *  trig)

Definition at line 171 of file led-triggers.c.

void led_trigger_register_simple ( const char name,
struct led_trigger **  tp 
)

Definition at line 290 of file led-triggers.c.

void led_trigger_remove ( struct led_classdev led_cdev)

Definition at line 143 of file led-triggers.c.

void led_trigger_set ( struct led_classdev led_cdev,
struct led_trigger *  trig 
)

Definition at line 102 of file led-triggers.c.

void led_trigger_set_default ( struct led_classdev led_cdev)

Definition at line 151 of file led-triggers.c.

ssize_t led_trigger_show ( struct device dev,
struct device_attribute attr,
char buf 
)

Definition at line 71 of file led-triggers.c.

ssize_t led_trigger_store ( struct device dev,
struct device_attribute attr,
const char buf,
size_t  count 
)

Definition at line 34 of file led-triggers.c.

void led_trigger_unregister ( struct led_trigger *  trig)

Definition at line 206 of file led-triggers.c.

void led_trigger_unregister_simple ( struct led_trigger *  trig)

Definition at line 314 of file led-triggers.c.

MODULE_AUTHOR ( "Richard Purdie"  )
MODULE_DESCRIPTION ( "LED Triggers Core"  )
MODULE_LICENSE ( "GPL"  )