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

#include <trigger.h>

Data Fields

struct moduleowner
 
int(* set_trigger_state )(struct iio_trigger *trig, bool state)
 
int(* try_reenable )(struct iio_trigger *trig)
 
int(* validate_device )(struct iio_trigger *trig, struct iio_dev *indio_dev)
 

Detailed Description

struct iio_trigger_ops - operations structure for an iio_trigger. : used to monitor usage count of the trigger. : switch on/off the trigger on demand : function to reenable the trigger when the use count is zero (may be NULL) : function to validate the device when the current trigger gets changed.

This is typically static const within a driver and shared by instances of a given device.

Definition at line 31 of file trigger.h.

Field Documentation

struct module* owner

Definition at line 32 of file trigger.h.

int(* set_trigger_state)(struct iio_trigger *trig, bool state)

Definition at line 33 of file trigger.h.

int(* try_reenable)(struct iio_trigger *trig)

Definition at line 34 of file trigger.h.

int(* validate_device)(struct iio_trigger *trig, struct iio_dev *indio_dev)

Definition at line 35 of file trigger.h.


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