'\" t .\" Title: devm_iio_trigger_alloc .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Industrial I/O core .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVM_IIO_TRIGGER_ALL" "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" devm_iio_trigger_alloc \- Resource\-managed \fBiio_trigger_alloc\fR .SH "SYNOPSIS" .HP \w'struct\ iio_trigger\ *\ devm_iio_trigger_alloc('u .BI "struct iio_trigger * devm_iio_trigger_alloc(struct\ device\ *\ " "dev" ", const\ char\ *\ " "fmt" ", " "\&.\&.\&." ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to allocate iio_trigger for .RE .PP \fIfmt\fR .RS 4 trigger name format\&. If it includes format specifiers, the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers\&. .RE .PP \fI\&.\&.\&.\fR .RS 4 variable arguments .RE .SH "DESCRIPTION" .PP Managed iio_trigger_alloc\&. iio_trigger allocated with this function is automatically freed on driver detach\&. .PP If an iio_trigger allocated with this function needs to be freed separately, \fBdevm_iio_trigger_free\fR must be used\&. .SH "RETURN" .PP Pointer to allocated iio_trigger on success, NULL on failure\&. .SH "AUTHOR" .PP \fBDaniel Baluta\fR <\&daniel.baluta@intel.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br