summaryrefslogtreecommitdiff
path: root/man/udev_monitor_unref.html
blob: 593fd2f5761fc59253e41b11ee1c6a814d120487 (plain)
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
37
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>udev_monitor_new_from_netlink</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_monitor_new_from_netlink"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>udev_monitor_new_from_netlink, udev_monitor_ref, udev_monitor_unref — Create, acquire and release a udev monitor object</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;libudev.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct udev_monitor *<b class="fsfunc">udev_monitor_new_from_netlink</b>(</code></td><td>struct udev *<var class="pdparam">udev</var>, </td></tr><tr><td> </td><td>const char *<var class="pdparam">name</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_monitor *<b class="fsfunc">udev_monitor_ref</b>(</code></td><td>struct udev_monitor *<var class="pdparam">udev_monitor</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_monitor *<b class="fsfunc">udev_monitor_unref</b>(</code></td><td>struct udev_monitor *<var class="pdparam">udev_monitor</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm47337545715488"></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_monitor_new_from_netlink()</code> returns a
    pointer to the allocated udev monitor. On failure,
    <code class="constant">NULL</code> is returned.
    <code class="function">udev_monitor_ref()</code> returns the argument
    that it was passed, unmodified.
    <code class="function">udev_monitor_unref()</code> always returns
    <code class="constant">NULL</code>.</p></div><div class="refsect1"><a name="idm47337545711808"></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_new.html"><span class="citerefentry"><span class="refentrytitle">udev_enumerate_new</span>(3)</span></a>,
      <a href="udev_monitor_filter_update.html"><span class="citerefentry"><span class="refentrytitle">udev_monitor_filter_update</span>(3)</span></a>,
      <a href="udev_monitor_receive_device.html"><span class="citerefentry"><span class="refentrytitle">udev_monitor_receive_device</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>