'\" t .\" Title: struct iio_trigger_ops .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Industrial I/O core .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT IIO_TRIGGER_O" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Industrial I/O core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_iio_trigger_ops \- operations structure for an iio_trigger\&. .SH "SYNOPSIS" .sp .nf struct iio_trigger_ops { 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); }; .fi .SH "MEMBERS" .PP owner .RS 4 used to monitor usage count of the trigger\&. .RE .PP set_trigger_state .RS 4 switch on/off the trigger on demand .RE .PP try_reenable .RS 4 function to reenable the trigger when the use count is zero (may be NULL) .RE .PP validate_device .RS 4 function to validate the device when the current trigger gets changed\&. .RE .SH "DESCRIPTION" .PP This is typically static const within a driver and shared by instances of a given device\&. .SH "AUTHOR" .PP \fBDaniel Baluta\fR <\&daniel.baluta@intel.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br