]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/udev_enumerate_add_match_subsystem.xml
test-execute: Add tests for new PassEnvironment= directive
[thirdparty/systemd.git] / man / udev_enumerate_add_match_subsystem.xml
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 <!--
9 This file is part of systemd.
10
11 Copyright 2015 David Herrmann <dh.herrmann@gmail.com>
12
13 systemd is free software; you can redistribute it and/or modify it
14 under the terms of the GNU Lesser General Public License as published by
15 the Free Software Foundation; either version 2.1 of the License, or
16 (at your option) any later version.
17
18 systemd is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public License
24 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 -->
26
27 <refentry id="udev_enumerate_add_match_subsystem"
28 xmlns:xi="http://www.w3.org/2001/XInclude">
29
30 <refentryinfo>
31 <title>udev_enumerate_add_match_subsystem</title>
32 <productname>systemd</productname>
33
34 <authorgroup>
35 <author>
36 <contrib>Developer</contrib>
37 <firstname>David</firstname>
38 <surname>Herrmann</surname>
39 <email>dh.herrmann@gmail.com</email>
40 </author>
41 </authorgroup>
42 </refentryinfo>
43
44 <refmeta>
45 <refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle>
46 <manvolnum>3</manvolnum>
47 </refmeta>
48
49 <refnamediv>
50 <refname>udev_enumerate_add_match_subsystem</refname>
51 <refname>udev_enumerate_add_nomatch_subsystem</refname>
52 <refname>udev_enumerate_add_match_sysattr</refname>
53 <refname>udev_enumerate_add_nomatch_sysattr</refname>
54 <refname>udev_enumerate_add_match_property</refname>
55 <refname>udev_enumerate_add_match_sysname</refname>
56 <refname>udev_enumerate_add_match_tag</refname>
57 <refname>udev_enumerate_add_match_parent</refname>
58 <refname>udev_enumerate_add_match_is_initialized</refname>
59
60 <refpurpose>Modify filters</refpurpose>
61 </refnamediv>
62
63 <refsynopsisdiv>
64 <funcsynopsis>
65 <funcsynopsisinfo>#include &lt;libudev.h&gt;</funcsynopsisinfo>
66
67 <funcprototype>
68 <funcdef>int <function>udev_enumerate_add_match_subsystem</function></funcdef>
69 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
70 <paramdef>const char *<parameter>subsystem</parameter></paramdef>
71 </funcprototype>
72
73 <funcprototype>
74 <funcdef>int <function>udev_enumerate_add_nomatch_subsystem</function></funcdef>
75 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
76 <paramdef>const char *<parameter>subsystem</parameter></paramdef>
77 </funcprototype>
78
79 <funcprototype>
80 <funcdef>int <function>udev_enumerate_add_match_sysattr</function></funcdef>
81 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
82 <paramdef>const char *<parameter>sysattr</parameter></paramdef>
83 <paramdef>const char *<parameter>value</parameter></paramdef>
84 </funcprototype>
85
86 <funcprototype>
87 <funcdef>int <function>udev_enumerate_add_nomatch_sysattr</function></funcdef>
88 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
89 <paramdef>const char *<parameter>sysattr</parameter></paramdef>
90 <paramdef>const char *<parameter>value</parameter></paramdef>
91 </funcprototype>
92
93 <funcprototype>
94 <funcdef>int <function>udev_enumerate_add_match_property</function></funcdef>
95 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
96 <paramdef>const char *<parameter>property</parameter></paramdef>
97 <paramdef>const char *<parameter>value</parameter></paramdef>
98 </funcprototype>
99
100 <funcprototype>
101 <funcdef>int <function>udev_enumerate_add_match_sysname</function></funcdef>
102 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
103 <paramdef>const char *<parameter>sysname</parameter></paramdef>
104 </funcprototype>
105
106 <funcprototype>
107 <funcdef>int <function>udev_enumerate_add_match_tag</function></funcdef>
108 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
109 <paramdef>const char *<parameter>tag</parameter></paramdef>
110 </funcprototype>
111
112 <funcprototype>
113 <funcdef>int <function>udev_enumerate_add_match_parent</function></funcdef>
114 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
115 <paramdef>struct udev_device *<parameter>parent</parameter></paramdef>
116 </funcprototype>
117
118 <funcprototype>
119 <funcdef>int <function>udev_enumerate_add_match_is_initialized</function></funcdef>
120 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
121 </funcprototype>
122
123 </funcsynopsis>
124 </refsynopsisdiv>
125
126 <!--<refsect1>
127 <title>Description</title>
128
129 <para>XXX: Add short description.</para>
130 </refsect1>-->
131
132 <refsect1>
133 <title>Return Value</title>
134
135 <para>On success,
136 <function>udev_enumerate_add_match_subsystem</function>,
137 <function>udev_enumerate_add_nomatch_subsystem</function>,
138 <function>udev_enumerate_add_match_sysattr</function>,
139 <function>udev_enumerate_add_nomatch_sysattr</function>,
140 <function>udev_enumerate_add_match_property</function>,
141 <function>udev_enumerate_add_match_sysname</function>,
142 <function>udev_enumerate_add_match_tag</function>,
143 <function>udev_enumerate_add_match_parent</function> and
144 <function>udev_enumerate_add_match_is_initialized</function>
145 return an integer greater than, or equal to,
146 <constant>0</constant>.</para>
147 </refsect1>
148
149 <refsect1>
150 <title>See Also</title>
151
152 <para>
153 <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
154 <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
155 <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
156 <citerefentry><refentrytitle>udev_enumerate_scan_devices</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
157 <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
158 <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
159 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
160 </para>
161 </refsect1>
162
163 </refentry>