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

Go to the source code of this file.

Data Structures

struct  iio_subirq
 
struct  iio_trigger_ops
 
struct  iio_trigger
 

Functions

: [DRIVER] unique name

struct iio_trigger - industrial I/O trigger device : [DRIVER] operations structure : [INTERN] unique id number

: [DRIVER] associated device (if relevant) : [DRIVER] device specific data : [INTERN] used in maintenance of global trigger list : [DRIVER] used for driver specific trigger list : use count for the trigger : [INTERN] associate 'virtual' irq chip. : [INTERN] base number for irqs provided by trigger. : [INTERN] information about the 'child' irqs. : [INTERN] bitmap of irqs currently in use. : [INTERN] protection of the irq pool.

int iio_trigger_register (struct iio_trigger *trig_info)
 
void iio_trigger_unregister (struct iio_trigger *trig_info)
 
void iio_trigger_poll (struct iio_trigger *trig, s64 time)
 
void iio_trigger_poll_chained (struct iio_trigger *trig, s64 time)
 
irqreturn_t iio_trigger_generic_data_rdy_poll (int irq, void *private)
 
 __printf (1, 2) struct iio_trigger *iio_trigger_alloc(const char *fmt
 
void iio_trigger_free (struct iio_trigger *trig)
 

Function Documentation

__printf ( ,
 
) const
void iio_trigger_free ( struct iio_trigger trig)

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

irqreturn_t iio_trigger_generic_data_rdy_poll ( int  irq,
void private 
)

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

void iio_trigger_poll ( struct iio_trigger trig,
s64  time 
)

iio_trigger_poll() - called on a trigger occurring : trigger which occurred : timestamp when trigger occurred

Typically called in relevant hardware interrupt handler.

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

void iio_trigger_poll_chained ( struct iio_trigger trig,
s64  time 
)

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

int iio_trigger_register ( struct iio_trigger trig_info)

iio_trigger_register() - register a trigger with the IIO core : trigger to be registered

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

void iio_trigger_unregister ( struct iio_trigger trig_info)

iio_trigger_unregister() - unregister a trigger from the core : trigger to be unregistered

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