man-pages/man3/udev_list_entry.3.html
2021-03-31 01:06:50 +01:00

105 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of UDEV_LIST_ENTRY</TITLE>
</HEAD><BODY>
<H1>UDEV_LIST_ENTRY</H1>
Section: udev_list_entry (3)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
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
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<B>
</B><PRE>
#include &lt;<A HREF="file:///usr/include/libudev.h">libudev.h</A>&gt;
</PRE>
<DL COMPACT>
<DT id="1">
<B>struct udev_list_entry *udev_list_entry_get_next(struct&nbsp;udev_list_entry&nbsp;*</B><I>list_entry</I><B>);</B>
<DT id="2">
<B>struct udev_list_entry *udev_list_entry_get_by_name(struct&nbsp;udev_list_entry&nbsp;*</B><I>list_entry</I><B>, const&nbsp;char&nbsp;*</B><I>name</I><B>);</B>
<DT id="3">
<B>const char *udev_list_entry_get_name(struct&nbsp;udev_list_entry&nbsp;*</B><I>list_entry</I><B>);</B>
<DT id="4">
<B>const char *udev_list_entry_get_value(struct&nbsp;udev_list_entry&nbsp;*</B><I>list_entry</I><B>);</B>
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>RETURN VALUE</H2>
<P>
<DD>On success,
<B>udev_list_entry_get_next()</B>
and
<B>udev_list_entry_get_by_name()</B>
return a pointer to the requested list entry. If no such entry can be found, or on failure,
<B>NULL</B>
is returned.
<P>
On success,
<B>udev_list_entry_get_name()</B>
and
<B>udev_list_entry_get_value()</B>
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,
<B>NULL</B>
is returned.
<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?3+udev_new">udev_new</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+udev_device_new_from_syspath">udev_device_new_from_syspath</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+udev_enumerate_new">udev_enumerate_new</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+udev_monitor_new_from_netlink">udev_monitor_new_from_netlink</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">RETURN VALUE</A><DD>
<DT id="8"><A HREF="#lbAE">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:59 GMT, March 31, 2021
</BODY>
</HTML>