]>
Commit | Line | Data |
---|---|---|
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 | 11 | Copyright 2015 David Herrmann <dh.herrmann@gmail.com> |
06255d6f DH |
12 | --> |
13 | ||
14 | <refentry id="udev_enumerate_add_match_subsystem" | |
15 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
16 | ||
17 | <refentryinfo> | |
18 | <title>udev_enumerate_add_match_subsystem</title> | |
19 | <productname>systemd</productname> | |
20 | ||
21 | <authorgroup> | |
22 | <author> | |
23 | <contrib>Developer</contrib> | |
24 | <firstname>David</firstname> | |
25 | <surname>Herrmann</surname> | |
26 | <email>dh.herrmann@gmail.com</email> | |
27 | </author> | |
28 | </authorgroup> | |
29 | </refentryinfo> | |
30 | ||
31 | <refmeta> | |
32 | <refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle> | |
33 | <manvolnum>3</manvolnum> | |
34 | </refmeta> | |
35 | ||
36 | <refnamediv> | |
37 | <refname>udev_enumerate_add_match_subsystem</refname> | |
38 | <refname>udev_enumerate_add_nomatch_subsystem</refname> | |
39 | <refname>udev_enumerate_add_match_sysattr</refname> | |
40 | <refname>udev_enumerate_add_nomatch_sysattr</refname> | |
41 | <refname>udev_enumerate_add_match_property</refname> | |
42 | <refname>udev_enumerate_add_match_sysname</refname> | |
43 | <refname>udev_enumerate_add_match_tag</refname> | |
44 | <refname>udev_enumerate_add_match_parent</refname> | |
45 | <refname>udev_enumerate_add_match_is_initialized</refname> | |
46 | ||
47 | <refpurpose>Modify filters</refpurpose> | |
48 | </refnamediv> | |
49 | ||
50 | <refsynopsisdiv> | |
51 | <funcsynopsis> | |
52 | <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo> | |
53 | ||
54 | <funcprototype> | |
55 | <funcdef>int <function>udev_enumerate_add_match_subsystem</function></funcdef> | |
56 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
57 | <paramdef>const char *<parameter>subsystem</parameter></paramdef> | |
58 | </funcprototype> | |
59 | ||
60 | <funcprototype> | |
61 | <funcdef>int <function>udev_enumerate_add_nomatch_subsystem</function></funcdef> | |
62 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
63 | <paramdef>const char *<parameter>subsystem</parameter></paramdef> | |
64 | </funcprototype> | |
65 | ||
66 | <funcprototype> | |
67 | <funcdef>int <function>udev_enumerate_add_match_sysattr</function></funcdef> | |
68 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
69 | <paramdef>const char *<parameter>sysattr</parameter></paramdef> | |
70 | <paramdef>const char *<parameter>value</parameter></paramdef> | |
71 | </funcprototype> | |
72 | ||
73 | <funcprototype> | |
74 | <funcdef>int <function>udev_enumerate_add_nomatch_sysattr</function></funcdef> | |
75 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
76 | <paramdef>const char *<parameter>sysattr</parameter></paramdef> | |
77 | <paramdef>const char *<parameter>value</parameter></paramdef> | |
78 | </funcprototype> | |
79 | ||
80 | <funcprototype> | |
81 | <funcdef>int <function>udev_enumerate_add_match_property</function></funcdef> | |
82 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
83 | <paramdef>const char *<parameter>property</parameter></paramdef> | |
84 | <paramdef>const char *<parameter>value</parameter></paramdef> | |
85 | </funcprototype> | |
86 | ||
87 | <funcprototype> | |
88 | <funcdef>int <function>udev_enumerate_add_match_sysname</function></funcdef> | |
89 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
90 | <paramdef>const char *<parameter>sysname</parameter></paramdef> | |
91 | </funcprototype> | |
92 | ||
93 | <funcprototype> | |
94 | <funcdef>int <function>udev_enumerate_add_match_tag</function></funcdef> | |
95 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
96 | <paramdef>const char *<parameter>tag</parameter></paramdef> | |
97 | </funcprototype> | |
98 | ||
99 | <funcprototype> | |
100 | <funcdef>int <function>udev_enumerate_add_match_parent</function></funcdef> | |
101 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
102 | <paramdef>struct udev_device *<parameter>parent</parameter></paramdef> | |
103 | </funcprototype> | |
104 | ||
105 | <funcprototype> | |
106 | <funcdef>int <function>udev_enumerate_add_match_is_initialized</function></funcdef> | |
107 | <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> | |
108 | </funcprototype> | |
109 | ||
110 | </funcsynopsis> | |
111 | </refsynopsisdiv> | |
112 | ||
113 | <!--<refsect1> | |
114 | <title>Description</title> | |
115 | ||
116 | <para>XXX: Add short description.</para> | |
117 | </refsect1>--> | |
118 | ||
119 | <refsect1> | |
120 | <title>Return Value</title> | |
121 | ||
122 | <para>On success, | |
123 | <function>udev_enumerate_add_match_subsystem</function>, | |
124 | <function>udev_enumerate_add_nomatch_subsystem</function>, | |
125 | <function>udev_enumerate_add_match_sysattr</function>, | |
126 | <function>udev_enumerate_add_nomatch_sysattr</function>, | |
127 | <function>udev_enumerate_add_match_property</function>, | |
128 | <function>udev_enumerate_add_match_sysname</function>, | |
129 | <function>udev_enumerate_add_match_tag</function>, | |
130 | <function>udev_enumerate_add_match_parent</function> and | |
131 | <function>udev_enumerate_add_match_is_initialized</function> | |
132 | return an integer greater than, or equal to, | |
133 | <constant>0</constant>.</para> | |
134 | </refsect1> | |
135 | ||
136 | <refsect1> | |
137 | <title>See Also</title> | |
138 | ||
139 | <para> | |
140 | <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
141 | <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
142 | <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
143 | <citerefentry><refentrytitle>udev_enumerate_scan_devices</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
144 | <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
145 | <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
146 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
147 | </para> | |
148 | </refsect1> | |
149 | ||
150 | </refentry> |