Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures
trigger_consumer.h File Reference
#include <linux/interrupt.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  iio_poll_func
 

Functions

: name used to identify the trigger consumer.

struct iio_poll_func - poll function pair

: data specific to device (passed into poll func) : the function that is actually run on trigger : threaded interrupt part : the type of interrupt (basically if oneshot)

: the corresponding irq as allocated from the trigger pool : some devices need a timestamp grabbed as soon as possible after the trigger - hence handler passes it via here.

struct iio_poll_funciio_alloc_pollfunc (irqreturn_t(*h)(int irq, void *p), irqreturn_t(*thread)(int irq, void *p), int type, struct iio_dev *indio_dev, const char *fmt,...)
 
void iio_dealloc_pollfunc (struct iio_poll_func *pf)
 
irqreturn_t iio_pollfunc_store_time (int irq, void *p)
 
void iio_trigger_notify_done (struct iio_trigger *trig)
 
int iio_triggered_buffer_postenable (struct iio_dev *indio_dev)
 
int iio_triggered_buffer_predisable (struct iio_dev *indio_dev)
 

Function Documentation

struct iio_poll_func* iio_alloc_pollfunc ( irqreturn_t(*)(int irq, void *p h,
irqreturn_t(*)(int irq, void *p thread,
int  type,
struct iio_dev indio_dev,
const char fmt,
  ... 
)
read

Definition at line 254 of file industrialio-trigger.c.

void iio_dealloc_pollfunc ( struct iio_poll_func pf)

Definition at line 283 of file industrialio-trigger.c.

irqreturn_t iio_pollfunc_store_time ( int  irq,
void p 
)

Definition at line 245 of file industrialio-trigger.c.

void iio_trigger_notify_done ( struct iio_trigger trig)

Definition at line 158 of file industrialio-trigger.c.

int iio_triggered_buffer_postenable ( struct iio_dev indio_dev)

Definition at line 484 of file industrialio-trigger.c.

int iio_triggered_buffer_predisable ( struct iio_dev indio_dev)

Definition at line 491 of file industrialio-trigger.c.