1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>udev_enumerate_new</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
a.headerlink {
color: #c60f0f;
font-size: 0.8em;
padding: 0 4px 0 4px;
text-decoration: none;
visibility: hidden;
}
a.headerlink:hover {
background-color: #c60f0f;
color: white;
}
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
visibility: visible;
}
</style><a href="index.html">Index </a>·
<a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>·
<span style="float:right">systemd 221</span><hr><div class="refentry"><a name="udev_enumerate_new"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>udev_enumerate_new, udev_enumerate_ref, udev_enumerate_unref — Create, acquire and release a udev enumerate object</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include <libudev.h></pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct udev_enumerate *<b class="fsfunc">udev_enumerate_new</b>(</code></td><td>struct udev *<var class="pdparam">udev</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct udev_enumerate *<b class="fsfunc">udev_enumerate_ref</b>(</code></td><td>struct udev_enumerate *<var class="pdparam">udev_enumerate</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct udev_enumerate *<b class="fsfunc">udev_enumerate_unref</b>(</code></td><td>struct udev_enumerate *<var class="pdparam">udev_enumerate</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm47283075962096"></a><h2 id="Return Value">Return Value<a class="headerlink" title="Permalink to this headline" href="#Return%20Value">¶</a></h2><p>On success, <code class="function">udev_enumerate_new()</code> returns a
pointer to the allocated udev monitor. On failure,
<code class="constant">NULL</code> is returned.
<code class="function">udev_enumerate_ref()</code> returns the argument
that it was passed, unmodified.
<code class="function">udev_enumerate_unref()</code> always returns
<code class="constant">NULL</code>.</p></div><div class="refsect1"><a name="idm47283075958032"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
<a href="udev_new.html"><span class="citerefentry"><span class="refentrytitle">udev_new</span>(3)</span></a>,
<a href="udev_device_new_from_syspath.html"><span class="citerefentry"><span class="refentrytitle">udev_device_new_from_syspath</span>(3)</span></a>,
<a href="udev_enumerate_add_match_subsystem.html"><span class="citerefentry"><span class="refentrytitle">udev_enumerate_add_match_subsystem</span>(3)</span></a>,
<a href="udev_enumerate_scan_devices.html"><span class="citerefentry"><span class="refentrytitle">udev_enumerate_scan_devices</span>(3)</span></a>,
<a href="udev_monitor_new_from_netlink.html"><span class="citerefentry"><span class="refentrytitle">udev_monitor_new_from_netlink</span>(3)</span></a>,
<a href="udev_list_entry.html"><span class="citerefentry"><span class="refentrytitle">udev_list_entry</span>(3)</span></a>,
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
</p></div></div></body></html>
|