1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4 <!ENTITY % entities SYSTEM
"custom-entities.ent" >
7 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
9 <refentry id=
"udev_list_entry"
10 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
13 <title>udev_list_entry
</title>
14 <productname>systemd
</productname>
18 <refentrytitle>udev_list_entry
</refentrytitle>
19 <manvolnum>3</manvolnum>
23 <refname>udev_list_entry
</refname>
24 <refname>udev_list_entry_get_next
</refname>
25 <refname>udev_list_entry_get_by_name
</refname>
26 <refname>udev_list_entry_get_name
</refname>
27 <refname>udev_list_entry_get_value
</refname>
29 <refpurpose>Iterate and access udev lists
</refpurpose>
34 <funcsynopsisinfo>#include
<libudev.h
></funcsynopsisinfo>
37 <funcdef>struct udev_list_entry *
<function>udev_list_entry_get_next
</function></funcdef>
38 <paramdef>struct udev_list_entry *
<parameter>list_entry
</parameter></paramdef>
42 <funcdef>struct udev_list_entry *
<function>udev_list_entry_get_by_name
</function></funcdef>
43 <paramdef>struct udev_list_entry *
<parameter>list_entry
</parameter></paramdef>
44 <paramdef>const char *
<parameter>name
</parameter></paramdef>
48 <funcdef>const char *
<function>udev_list_entry_get_name
</function></funcdef>
49 <paramdef>struct udev_list_entry *
<parameter>list_entry
</parameter></paramdef>
53 <funcdef>const char *
<function>udev_list_entry_get_value
</function></funcdef>
54 <paramdef>struct udev_list_entry *
<parameter>list_entry
</parameter></paramdef>
61 <title>Description</title>
63 <para>XXX: Add short description.</para>
67 <title>Return Value
</title>
70 <function>udev_list_entry_get_next()
</function> and
71 <function>udev_list_entry_get_by_name()
</function> return
72 a pointer to the requested list entry. If no such entry can
73 be found, or on failure,
<constant>NULL
</constant> is
77 <function>udev_list_entry_get_name()
</function> and
78 <function>udev_list_entry_get_value()
</function> return a
79 pointer to a constant string representing the requested value.
80 The string is bound to the lifetime of the list entry itself.
81 On failure,
<constant>NULL
</constant> is returned.
</para>
85 <title>See Also
</title>
88 <citerefentry><refentrytitle>udev_new
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
89 <citerefentry><refentrytitle>udev_device_new_from_syspath
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
90 <citerefentry><refentrytitle>udev_enumerate_new
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
91 <citerefentry><refentrytitle>udev_monitor_new_from_netlink
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
92 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,