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_enumerate_scan_devices"
10 xmlns:xi="http://www.w3.org/2001/XInclude">
13 <title>udev_enumerate_scan_devices</title>
14 <productname>systemd</productname>
18 <refentrytitle>udev_enumerate_scan_devices</refentrytitle>
19 <manvolnum>3</manvolnum>
23 <refname>udev_enumerate_scan_devices</refname>
24 <refname>udev_enumerate_scan_subsystems</refname>
25 <refname>udev_enumerate_get_list_entry</refname>
26 <refname>udev_enumerate_add_syspath</refname>
27 <refname>udev_enumerate_get_udev</refname>
29 <refpurpose>Query or modify a udev enumerate object</refpurpose>
34 <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo>
37 <funcdef>int <function>udev_enumerate_scan_devices</function></funcdef>
38 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
42 <funcdef>int <function>udev_enumerate_scan_subsystems</function></funcdef>
43 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
47 <funcdef>struct udev_list_entry *<function>udev_enumerate_get_list_entry</function></funcdef>
48 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
52 <funcdef>int <function>udev_enumerate_add_syspath</function></funcdef>
53 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
54 <paramdef>const char *<parameter>syspath</parameter></paramdef>
58 <funcdef>struct udev *<function>udev_enumerate_get_udev</function></funcdef>
59 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
66 <title>Description</title>
68 <para>XXX: Add short description.</para>
72 <title>Return Value</title>
75 <function>udev_enumerate_scan_devices()</function>,
76 <function>udev_enumerate_scan_subsystems()</function> and
77 <function>udev_enumerate_add_syspath()</function>
78 return an integer greater than, or equal to,
79 <constant>0</constant>.</para>
82 <function>udev_enumerate_get_list_entry()</function>
83 returns a pointer to the first entry in the list of found
84 devices. If the list is empty, or on failure,
85 <constant>NULL</constant> is returned.</para>
87 <para><function>udev_enumerate_get_udev()</function> always
88 returns a pointer to the udev context that this enumerated
89 object is associated with.</para>
93 <title>History</title>
94 <para><function>udev_enumerate_scan_devices()</function>,
95 <function>udev_enumerate_scan_subsystems()</function>,
96 <function>udev_enumerate_get_list_entry()</function>,
97 <function>udev_enumerate_add_syspath()</function>, and
98 <function>udev_enumerate_get_udev()</function> were added in version 221.</para>
102 <title>See Also</title>
105 <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
106 <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
107 <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
108 <citerefentry><refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
109 <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
110 <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
111 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,