'\" t .\" Title: iio_trigger_validate_own_device .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Industrial I/O core .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "IIO_TRIGGER_VALIDATE" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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" iio_trigger_validate_own_device \- Check if a trigger and IIO device belong to the same device .SH "SYNOPSIS" .HP \w'int\ iio_trigger_validate_own_device('u .BI "int iio_trigger_validate_own_device(struct\ iio_trigger\ *\ " "trig" ", struct\ iio_dev\ *\ " "indio_dev" ");" .SH "ARGUMENTS" .PP \fItrig\fR .RS 4 The IIO trigger to check .RE .PP \fIindio_dev\fR .RS 4 the IIO device to check .RE .SH "DESCRIPTION" .PP This function can be used as the validate_device callback for triggers that can only be attached to their own device\&. .SH "RETURN" .PP 0 if both the trigger and the IIO device belong to the same device, \-EINVAL otherwise\&. .SH "AUTHOR" .PP \fBDaniel Baluta\fR <\&daniel.baluta@intel.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br