struct_iio_trigger_ops(9)

struct_iio_trigger_ops9

Operations structure for an iio_trigger.

Usage

struct module * owner;

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);

Members

owner

used to monitor usage count of the trigger.

set_trigger_state

switch on/off the trigger on demand

try_reenable

function to reenable the trigger when the use count is zero (may be NULL)

validate_device

function to validate the device when the current trigger gets changed.

Overview

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

Author

Daniel Baluta <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.