summaryrefslogtreecommitdiff
path: root/man/udev_list_entry_get_value.html
blob: 5c194dd7345e0cadf502d6944b04b4a5f2eda6f0 (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
38
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>udev_list_entry</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_list_entry"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>udev_list_entry, udev_list_entry_get_next, udev_list_entry_get_by_name, udev_list_entry_get_name, udev_list_entry_get_value — Iterate and access udev lists</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_list_entry *<b class="fsfunc">udev_list_entry_get_next</b>(</code></td><td>struct udev_list_entry *<var class="pdparam">list_entry</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_list_entry *<b class="fsfunc">udev_list_entry_get_by_name</b>(</code></td><td>struct udev_list_entry *<var class="pdparam">list_entry</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">const char *<b class="fsfunc">udev_list_entry_get_name</b>(</code></td><td>struct udev_list_entry *<var class="pdparam">list_entry</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">const char *<b class="fsfunc">udev_list_entry_get_value</b>(</code></td><td>struct udev_list_entry *<var class="pdparam">list_entry</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm47066687746624"></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_list_entry_get_next()</code> and
    <code class="function">udev_list_entry_get_by_name()</code> return
    a pointer to the requested list entry. If no such entry can
    be found, or on failure, <code class="constant">NULL</code> is
    returned.</p><p>On success,
    <code class="function">udev_list_entry_get_name()</code> and
    <code class="function">udev_list_entry_get_value()</code> return a
    pointer to a constant string representing the requested value.
    The string is bound to the lifetime of the list-entry itself.
    On failure, <code class="constant">NULL</code> is returned.</p></div><div class="refsect1"><a name="idm47066683086528"></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_new_from_netlink.html"><span class="citerefentry"><span class="refentrytitle">udev_monitor_new_from_netlink</span>(3)</span></a>,
      <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
    </p></div></div></body></html>