]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/udev_enumerate_scan_devices.xml
verify: use manager_load_startable_unit_or_warn() to load units for verification
[thirdparty/systemd.git] / man / udev_enumerate_scan_devices.xml
CommitLineData
06255d6f
DH
1<?xml version='1.0'?> <!--*-nxml-*-->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4<!ENTITY % entities SYSTEM "custom-entities.ent" >
5%entities;
6]>
7
8<!--
572eb058
ZJS
9 SPDX-License-Identifier: LGPL-2.1+
10
06255d6f
DH
11 This file is part of systemd.
12
13 Copyright 2015 David Herrmann <dh.herrmann@gmail.com>
14
15 systemd is free software; you can redistribute it and/or modify it
16 under the terms of the GNU Lesser General Public License as published by
17 the Free Software Foundation; either version 2.1 of the License, or
18 (at your option) any later version.
19
20 systemd is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 Lesser General Public License for more details.
24
25 You should have received a copy of the GNU Lesser General Public License
26 along with systemd; If not, see <http://www.gnu.org/licenses/>.
27-->
28
29<refentry id="udev_enumerate_scan_devices"
30 xmlns:xi="http://www.w3.org/2001/XInclude">
31
32 <refentryinfo>
33 <title>udev_enumerate_scan_devices</title>
34 <productname>systemd</productname>
35
36 <authorgroup>
37 <author>
38 <contrib>Developer</contrib>
39 <firstname>David</firstname>
40 <surname>Herrmann</surname>
41 <email>dh.herrmann@gmail.com</email>
42 </author>
43 </authorgroup>
44 </refentryinfo>
45
46 <refmeta>
47 <refentrytitle>udev_enumerate_scan_devices</refentrytitle>
48 <manvolnum>3</manvolnum>
49 </refmeta>
50
51 <refnamediv>
52 <refname>udev_enumerate_scan_devices</refname>
53 <refname>udev_enumerate_scan_subsystems</refname>
54 <refname>udev_enumerate_get_list_entry</refname>
55 <refname>udev_enumerate_add_syspath</refname>
56 <refname>udev_enumerate_get_udev</refname>
57
58 <refpurpose>Query or modify a udev enumerate object</refpurpose>
59 </refnamediv>
60
61 <refsynopsisdiv>
62 <funcsynopsis>
63 <funcsynopsisinfo>#include &lt;libudev.h&gt;</funcsynopsisinfo>
64
65 <funcprototype>
66 <funcdef>int <function>udev_enumerate_scan_devices</function></funcdef>
67 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
68 </funcprototype>
69
70 <funcprototype>
71 <funcdef>int <function>udev_enumerate_scan_subsystems</function></funcdef>
72 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
73 </funcprototype>
74
75 <funcprototype>
76 <funcdef>struct udev_list_entry *<function>udev_enumerate_get_list_entry</function></funcdef>
77 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
78 </funcprototype>
79
80 <funcprototype>
81 <funcdef>int <function>udev_enumerate_add_syspath</function></funcdef>
82 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
83 <paramdef>const char *<parameter>syspath</parameter></paramdef>
84 </funcprototype>
85
86 <funcprototype>
87 <funcdef>struct udev *<function>udev_enumerate_get_udev</function></funcdef>
88 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
89 </funcprototype>
90
91 </funcsynopsis>
92 </refsynopsisdiv>
93
94 <!--<refsect1>
95 <title>Description</title>
96
97 <para>XXX: Add short description.</para>
98 </refsect1>-->
99
100 <refsect1>
101 <title>Return Value</title>
102
103 <para>On success,
104 <function>udev_enumerate_scan_devices()</function>,
105 <function>udev_enumerate_scan_subsystems()</function> and
106 <function>udev_enumerate_add_syspath()</function>
107 return an integer greater than, or equal to,
108 <constant>0</constant>.</para>
109
110 <para>On success,
111 <function>udev_enumerate_get_list_entry()</function>
112 returns a pointer to the first entry in the list of found
113 devices. If the list is empty, or on failure,
114 <constant>NULL</constant> is returned.</para>
115
116 <para><function>udev_enumerate_get_udev()</function> always
a8eaaee7 117 returns a pointer to the udev context that this enumerated
06255d6f
DH
118 object is associated with.</para>
119 </refsect1>
120
121 <refsect1>
122 <title>See Also</title>
123
124 <para>
125 <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
126 <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
127 <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
128 <citerefentry><refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
129 <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
130 <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
131 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
132 </para>
133 </refsect1>
134
135</refentry>