-
Notifications
You must be signed in to change notification settings - Fork 0
/
API-devm-iio-trigger-alloc.html
21 lines (20 loc) · 3.64 KB
/
API-devm-iio-trigger-alloc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>devm_iio_trigger_alloc</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Industrial I/O driver developer's guide"><link rel="up" href="iiotrigger.html" title="Industrial I/O triggers"><link rel="prev" href="API-struct-iio-trigger.html" title="struct iio_trigger"><link rel="next" href="API-devm-iio-trigger-free.html" title="devm_iio_trigger_free"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">devm_iio_trigger_alloc</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-iio-trigger.html">Prev</a> </td><th width="60%" align="center"> Industrial I/O triggers </th><td width="20%" align="right"> <a accesskey="n" href="API-devm-iio-trigger-free.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-devm-iio-trigger-alloc"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>devm_iio_trigger_alloc —
Resource-managed <code class="function">iio_trigger_alloc</code>
</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct iio_trigger * <b class="fsfunc">devm_iio_trigger_alloc </b>(</code></td><td>struct device * <var class="pdparam">dev</var>, </td></tr><tr><td> </td><td>const char * <var class="pdparam">fmt</var>, </td></tr><tr><td> </td><td> <var class="pdparam">...</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp55917472"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p>
Device to allocate iio_trigger for
</p></dd><dt><span class="term"><em class="parameter"><code>fmt</code></em></span></dt><dd><p>
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.
</p></dd><dt><span class="term"><em class="parameter"><code>...</code></em></span></dt><dd><p>
variable arguments
</p></dd></dl></div></div><div class="refsect1"><a name="idp55924560"></a><h2>Description</h2><p>
Managed iio_trigger_alloc. iio_trigger allocated with this function is
automatically freed on driver detach.
</p><p>
If an iio_trigger allocated with this function needs to be freed separately,
<code class="function">devm_iio_trigger_free</code> must be used.
</p></div><div class="refsect1"><a name="idp55926832"></a><h2>RETURNS</h2><p>
Pointer to allocated iio_trigger on success, NULL on failure.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-iio-trigger.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="iiotrigger.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-devm-iio-trigger-free.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct iio_trigger</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">devm_iio_trigger_free</span></td></tr></table></div></body></html>