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 -->
8
9<refentry id="udev_enumerate_add_match_subsystem"
10  xmlns:xi="http://www.w3.org/2001/XInclude">
11
12  <refentryinfo>
13    <title>udev_enumerate_add_match_subsystem</title>
14    <productname>systemd</productname>
15  </refentryinfo>
16
17  <refmeta>
18    <refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle>
19    <manvolnum>3</manvolnum>
20  </refmeta>
21
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>
32
33    <refpurpose>Modify filters</refpurpose>
34  </refnamediv>
35
36  <refsynopsisdiv>
37    <funcsynopsis>
38      <funcsynopsisinfo>#include &lt;libudev.h&gt;</funcsynopsisinfo>
39
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>
45
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>
51
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>
58
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>
65
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>
72
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>
78
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>
84
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>
90
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>
95
96    </funcsynopsis>
97  </refsynopsisdiv>
98
99  <!--<refsect1>
100    <title>Description</title>
101
102    <para>XXX: Add short description.</para>
103  </refsect1>-->
104
105  <refsect1>
106    <title>Return Value</title>
107
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>
121
122  <refsect1>
123    <title>See Also</title>
124
125    <para>
126      <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
127      <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
128      <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
129      <citerefentry><refentrytitle>udev_enumerate_scan_devices</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
130      <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
131      <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
132      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
133    </para>
134  </refsect1>
135
136</refentry>
137