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_add_match_subsystem"
10 xmlns:xi="http://www.w3.org/2001/XInclude">
13 <title>udev_enumerate_add_match_subsystem</title>
14 <productname>systemd</productname>
18 <refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle>
19 <manvolnum>3</manvolnum>
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>
38 <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo>
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>
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>
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>
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>
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>
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>
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>
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>
92 <funcdef>int <function>udev_enumerate_add_match_is_initialized</function></funcdef>
93 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
100 <title>Description</title>
102 <para>XXX: Add short description.</para>
106 <title>Return Value</title>
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>
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>
136 <title>See Also</title>
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>,