1:255.16-alt1
[systemd_ALT.git] / man / udev_enumerate_add_match_subsystem.xml
blob079138bfb2d2ed6cf27be0e77965cb8ee4d79283
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" >
5 %entities;
6 ]>
7 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
9 <refentry id="udev_enumerate_add_match_subsystem"
10   xmlns:xi="http://www.w3.org/2001/XInclude">
12   <refentryinfo>
13     <title>udev_enumerate_add_match_subsystem</title>
14     <productname>systemd</productname>
15   </refentryinfo>
17   <refmeta>
18     <refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle>
19     <manvolnum>3</manvolnum>
20   </refmeta>
22   <refnamediv>
23     <refname>udev_enumerate_add_match_subsystem</refname>
24     <refname>udev_enumerate_add_nomatch_subsystem</refname>
25     <refname>udev_enumerate_add_match_sysattr</refname>
26     <refname>udev_enumerate_add_nomatch_sysattr</refname>
27     <refname>udev_enumerate_add_match_property</refname>
28     <refname>udev_enumerate_add_match_sysname</refname>
29     <refname>udev_enumerate_add_match_tag</refname>
30     <refname>udev_enumerate_add_match_parent</refname>
31     <refname>udev_enumerate_add_match_is_initialized</refname>
33     <refpurpose>Modify filters</refpurpose>
34   </refnamediv>
36   <refsynopsisdiv>
37     <funcsynopsis>
38       <funcsynopsisinfo>#include &lt;libudev.h&gt;</funcsynopsisinfo>
40       <funcprototype>
41         <funcdef>int <function>udev_enumerate_add_match_subsystem</function></funcdef>
42         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
43         <paramdef>const char *<parameter>subsystem</parameter></paramdef>
44       </funcprototype>
46       <funcprototype>
47         <funcdef>int <function>udev_enumerate_add_nomatch_subsystem</function></funcdef>
48         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
49         <paramdef>const char *<parameter>subsystem</parameter></paramdef>
50       </funcprototype>
52       <funcprototype>
53         <funcdef>int <function>udev_enumerate_add_match_sysattr</function></funcdef>
54         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
55         <paramdef>const char *<parameter>sysattr</parameter></paramdef>
56         <paramdef>const char *<parameter>value</parameter></paramdef>
57       </funcprototype>
59       <funcprototype>
60         <funcdef>int <function>udev_enumerate_add_nomatch_sysattr</function></funcdef>
61         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
62         <paramdef>const char *<parameter>sysattr</parameter></paramdef>
63         <paramdef>const char *<parameter>value</parameter></paramdef>
64       </funcprototype>
66       <funcprototype>
67         <funcdef>int <function>udev_enumerate_add_match_property</function></funcdef>
68         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
69         <paramdef>const char *<parameter>property</parameter></paramdef>
70         <paramdef>const char *<parameter>value</parameter></paramdef>
71       </funcprototype>
73       <funcprototype>
74         <funcdef>int <function>udev_enumerate_add_match_sysname</function></funcdef>
75         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
76         <paramdef>const char *<parameter>sysname</parameter></paramdef>
77       </funcprototype>
79       <funcprototype>
80         <funcdef>int <function>udev_enumerate_add_match_tag</function></funcdef>
81         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
82         <paramdef>const char *<parameter>tag</parameter></paramdef>
83       </funcprototype>
85       <funcprototype>
86         <funcdef>int <function>udev_enumerate_add_match_parent</function></funcdef>
87         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
88         <paramdef>struct udev_device *<parameter>parent</parameter></paramdef>
89       </funcprototype>
91       <funcprototype>
92         <funcdef>int <function>udev_enumerate_add_match_is_initialized</function></funcdef>
93         <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
94       </funcprototype>
96     </funcsynopsis>
97   </refsynopsisdiv>
99   <!--<refsect1>
100     <title>Description</title>
102     <para>XXX: Add short description.</para>
103   </refsect1>-->
105   <refsect1>
106     <title>Return Value</title>
108     <para>On success,
109     <function>udev_enumerate_add_match_subsystem()</function>,
110     <function>udev_enumerate_add_nomatch_subsystem()</function>,
111     <function>udev_enumerate_add_match_sysattr()</function>,
112     <function>udev_enumerate_add_nomatch_sysattr()</function>,
113     <function>udev_enumerate_add_match_property()</function>,
114     <function>udev_enumerate_add_match_sysname()</function>,
115     <function>udev_enumerate_add_match_tag()</function>,
116     <function>udev_enumerate_add_match_parent()</function> and
117     <function>udev_enumerate_add_match_is_initialized()</function>
118     return an integer greater than, or equal to,
119     <constant>0</constant>.</para>
120   </refsect1>
122   <refsect1>
123     <title>History</title>
124     <para><function>udev_enumerate_add_match_subsystem()</function>,
125     <function>udev_enumerate_add_nomatch_subsystem()</function>,
126     <function>udev_enumerate_add_match_sysattr()</function>,
127     <function>udev_enumerate_add_nomatch_sysattr()</function>,
128     <function>udev_enumerate_add_match_property()</function>,
129     <function>udev_enumerate_add_match_sysname()</function>,
130     <function>udev_enumerate_add_match_tag()</function>,
131     <function>udev_enumerate_add_match_parent()</function>, and
132     <function>udev_enumerate_add_match_is_initialized()</function> were added in version 221.</para>
133   </refsect1>
135   <refsect1>
136     <title>See Also</title>
138     <para>
139       <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
140       <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
141       <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
142       <citerefentry><refentrytitle>udev_enumerate_scan_devices</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
143       <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
144       <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
145       <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
146     </para>
147   </refsect1>
149 </refentry>