]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/udevadm.xml
udev-ctrl: split out logic of waiting for reply to udev_ctrl_wait()
[thirdparty/systemd.git] / man / udevadm.xml
CommitLineData
514094f9 1<?xml version='1.0'?>
63749b1a 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
225cb03b 4
f48f7543
ZJS
5<!--
6 SPDX-License-Identifier: LGPL-2.1+
f48f7543
ZJS
7-->
8
c94c581c
YW
9<refentry id="udevadm"
10 xmlns:xi="http://www.w3.org/2001/XInclude">
11
63749b1a 12 <refentryinfo>
225cb03b 13 <title>udevadm</title>
d3a2386d 14 <productname>systemd</productname>
63749b1a 15 </refentryinfo>
225cb03b 16
63749b1a
KS
17 <refmeta>
18 <refentrytitle>udevadm</refentrytitle>
19 <manvolnum>8</manvolnum>
63749b1a 20 </refmeta>
225cb03b 21
63749b1a
KS
22 <refnamediv>
23 <refname>udevadm</refname><refpurpose>udev management tool</refpurpose>
24 </refnamediv>
225cb03b 25
63749b1a
KS
26 <refsynopsisdiv>
27 <cmdsynopsis>
28 <command>udevadm</command>
29 <arg><option>--debug</option></arg>
30 <arg><option>--version</option></arg>
31 <arg><option>--help</option></arg>
32 </cmdsynopsis>
33 <cmdsynopsis>
c94c581c 34 <command>udevadm info <optional>options</optional> <optional>devpath</optional></command>
63749b1a
KS
35 </cmdsynopsis>
36 <cmdsynopsis>
c94c581c 37 <command>udevadm trigger <optional>options</optional> <optional>devpath</optional></command>
63749b1a
KS
38 </cmdsynopsis>
39 <cmdsynopsis>
40 <command>udevadm settle <optional>options</optional></command>
41 </cmdsynopsis>
42 <cmdsynopsis>
c94c581c 43 <command>udevadm control <replaceable>option</replaceable></command>
63749b1a
KS
44 </cmdsynopsis>
45 <cmdsynopsis>
46 <command>udevadm monitor <optional>options</optional></command>
47 </cmdsynopsis>
48 <cmdsynopsis>
49 <command>udevadm test <optional>options</optional> <replaceable>devpath</replaceable></command>
50 </cmdsynopsis>
d7867b31
KS
51 <cmdsynopsis>
52 <command>udevadm test-builtin <optional>options</optional> <replaceable>command</replaceable> <replaceable>devpath</replaceable></command>
53 </cmdsynopsis>
63749b1a 54 </refsynopsisdiv>
225cb03b 55
63749b1a 56 <refsect1><title>Description</title>
124b48b0
ZJS
57 <para><command>udevadm</command> expects a command and command
58 specific options. It controls the runtime behavior of
59 <command>systemd-udevd</command>, requests kernel events, manages
60 the event queue, and provides simple debugging mechanisms.</para>
63749b1a 61 </refsect1>
225cb03b 62
80877656 63 <refsect1><title>Options</title>
63749b1a
KS
64 <variablelist>
65 <varlistentry>
c94c581c 66 <term><option>-d</option></term>
63749b1a
KS
67 <term><option>--debug</option></term>
68 <listitem>
35a44646
YW
69 <para>Print debug messages to standard error. This option is implied in <command>udevadm test</command> and
70 <command>udevadm test-builtin</command> commands.</para>
63749b1a
KS
71 </listitem>
72 </varlistentry>
c94c581c 73
c94c581c 74 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a 75 </variablelist>
225cb03b 76
80877656
ZJS
77 <refsect2><title>udevadm info
78 <arg choice="opt"><replaceable>options</replaceable></arg>
3c79311a 79 <arg choice="opt" rep="repeat"><replaceable>devpath</replaceable>|<replaceable>file</replaceable>|<replaceable>unit</replaceable></arg>
80877656
ZJS
80 </title>
81
b6854081
ZJS
82 <para>Query the udev database for device information.</para>
83
3c79311a
ZJS
84 <para>Positional arguments should be used to specify one or more devices. Each one may be a device name
85 (in which case it must start with <filename>/dev/</filename>), a sys path (in which case it must start
86 with <filename>/sys/</filename>), or a systemd device unit name (in which case it must end with
b6854081
ZJS
87 <literal>.device</literal>, see
88 <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
89 </para>
90
63749b1a
KS
91 <variablelist>
92 <varlistentry>
7643ac9a
ZJS
93 <term><option>-q</option></term>
94 <term><option>--query=<replaceable>TYPE</replaceable></option></term>
63749b1a 95 <listitem>
b6854081 96 <para>Query the database for the specified type of device data.
7643ac9a
ZJS
97 Valid <replaceable>TYPE</replaceable>s are:
98 <constant>name</constant>, <constant>symlink</constant>,
99 <constant>path</constant>, <constant>property</constant>,
124b48b0 100 <constant>all</constant>.</para>
63749b1a
KS
101 </listitem>
102 </varlistentry>
b6854081 103
63749b1a 104 <varlistentry>
7643ac9a
ZJS
105 <term><option>-p</option></term>
106 <term><option>--path=<replaceable>DEVPATH</replaceable></option></term>
63749b1a 107 <listitem>
b6854081
ZJS
108 <para>The <filename>/sys</filename> path of the device to query, e.g.
109 <filename><optional>/sys</optional>/class/block/sda</filename>. This option is an alternative to
110 the positional argument with a <filename>/sys/</filename> prefix. <command>udevadm info
111 --path=/class/block/sda</command> is equivalent to <command>udevadm info
112 /sys/class/block/sda</command>.</para>
63749b1a
KS
113 </listitem>
114 </varlistentry>
115 <varlistentry>
7643ac9a
ZJS
116 <term><option>-n</option></term>
117 <term><option>--name=<replaceable>FILE</replaceable></option></term>
63749b1a 118 <listitem>
124b48b0 119 <para>The name of the device node or a symlink to query,
b6854081
ZJS
120 e.g. <filename><optional>/dev</optional>/sda</filename>. This option is an alternative to the
121 positional argument with a <filename>/dev/</filename> prefix. <command>udevadm info
122 --name=sda</command> is equivalent to <command>udevadm info /dev/sda</command>.</para>
63749b1a
KS
123 </listitem>
124 </varlistentry>
125 <varlistentry>
7643ac9a 126 <term><option>-r</option></term>
63749b1a
KS
127 <term><option>--root</option></term>
128 <listitem>
4f5d327a
KS
129 <para>Print absolute paths in <command>name</command> or <command>symlink</command>
130 query.</para>
4ec9c3e7
KS
131 </listitem>
132 </varlistentry>
63749b1a 133 <varlistentry>
7643ac9a 134 <term><option>-a</option></term>
63749b1a
KS
135 <term><option>--attribute-walk</option></term>
136 <listitem>
137 <para>Print all sysfs properties of the specified device that can be used
138 in udev rules to match the specified device. It prints all devices
139 along the chain, up to the root of sysfs that can be used in udev rules.</para>
140 </listitem>
141 </varlistentry>
dc1791a9 142 <varlistentry>
7643ac9a 143 <term><option>-x</option></term>
dc1791a9
KS
144 <term><option>--export</option></term>
145 <listitem>
f0c29bbf
YW
146 <para>Print output as key/value pairs. Values are enclosed in single quotes.
147 This takes effects only when <option>--query=property</option> or
148 <option>--device-id-of-file=<replaceable>FILE</replaceable></option> is specified.</para>
dc1791a9
KS
149 </listitem>
150 </varlistentry>
151 <varlistentry>
7643ac9a
ZJS
152 <term><option>-P</option></term>
153 <term><option>--export-prefix=<replaceable>NAME</replaceable></option></term>
dc1791a9 154 <listitem>
f0c29bbf
YW
155 <para>Add a prefix to the key name of exported values.
156 This implies <option>--export</option>.</para>
dc1791a9
KS
157 </listitem>
158 </varlistentry>
63749b1a 159 <varlistentry>
7643ac9a
ZJS
160 <term><option>-d</option></term>
161 <term><option>--device-id-of-file=<replaceable>FILE</replaceable></option></term>
63749b1a 162 <listitem>
f0c29bbf
YW
163 <para>Print major/minor numbers of the underlying device, where the file lives on.
164 If this is specified, all positional arguments are ignored.</para>
63749b1a
KS
165 </listitem>
166 </varlistentry>
167 <varlistentry>
7643ac9a 168 <term><option>-e</option></term>
63749b1a
KS
169 <term><option>--export-db</option></term>
170 <listitem>
171 <para>Export the content of the udev database.</para>
172 </listitem>
173 </varlistentry>
9ead6627 174 <varlistentry>
7643ac9a 175 <term><option>-c</option></term>
9ead6627
KS
176 <term><option>--cleanup-db</option></term>
177 <listitem>
178 <para>Cleanup the udev database.</para>
179 </listitem>
180 </varlistentry>
c94c581c 181
c94c581c 182 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a
KS
183 </variablelist>
184 </refsect2>
225cb03b 185
80877656
ZJS
186 <refsect2><title>udevadm trigger
187 <arg choice="opt"><replaceable>options</replaceable></arg>
a9bc94e5 188 <arg choice="opt"><replaceable>devpath</replaceable>|<replaceable>file</replaceable>|<replaceable>unit</replaceable></arg>
b6854081 189 </title>
63749b1a 190 <para>Request device events from the kernel. Primarily used to replay events at system coldplug time.</para>
b6854081 191
5b3b0733 192 <para>Takes device specifications as positional arguments. See the description of <command>info</command>
b6854081
ZJS
193 above.</para>
194
63749b1a
KS
195 <variablelist>
196 <varlistentry>
7643ac9a 197 <term><option>-v</option></term>
63749b1a
KS
198 <term><option>--verbose</option></term>
199 <listitem>
200 <para>Print the list of devices which will be triggered.</para>
201 </listitem>
202 </varlistentry>
203 <varlistentry>
7643ac9a 204 <term><option>-n</option></term>
63749b1a
KS
205 <term><option>--dry-run</option></term>
206 <listitem>
207 <para>Do not actually trigger the event.</para>
208 </listitem>
209 </varlistentry>
210 <varlistentry>
7643ac9a
ZJS
211 <term><option>-t</option></term>
212 <term><option>--type=<replaceable>TYPE</replaceable></option></term>
63749b1a
KS
213 <listitem>
214 <para>Trigger a specific type of devices. Valid types are:
864fde8a 215 <command>devices</command>, <command>subsystems</command>.
63749b1a
KS
216 The default value is <command>devices</command>.</para>
217 </listitem>
218 </varlistentry>
219 <varlistentry>
7643ac9a
ZJS
220 <term><option>-c</option></term>
221 <term><option>--action=<replaceable>ACTION</replaceable></option></term>
63749b1a 222 <listitem>
7643ac9a
ZJS
223 <para>Type of event to be triggered. The default value is
224 <command>change</command>.</para>
63749b1a
KS
225 </listitem>
226 </varlistentry>
227 <varlistentry>
7643ac9a
ZJS
228 <term><option>-s</option></term>
229 <term><option>--subsystem-match=<replaceable>SUBSYSTEM</replaceable></option></term>
63749b1a 230 <listitem>
7643ac9a 231 <para>Trigger events for devices which belong to a
a9bc94e5
YW
232 matching subsystem. This option supports shell style pattern matching.
233 When this option is specified more than once, then each matching result is ORed, that is,
234 all the devices in each subsystem are triggered.</para>
63749b1a
KS
235 </listitem>
236 </varlistentry>
237 <varlistentry>
7643ac9a
ZJS
238 <term><option>-S</option></term>
239 <term><option>--subsystem-nomatch=<replaceable>SUBSYSTEM</replaceable></option></term>
63749b1a
KS
240 <listitem>
241 <para>Do not trigger events for devices which belong to a matching subsystem. This option
a9bc94e5
YW
242 supports shell style pattern matching. When this option is specified more than once,
243 then each matching result is ANDed, that is, devices which do not match all specified
244 subsystems are triggered.</para>
63749b1a
KS
245 </listitem>
246 </varlistentry>
247 <varlistentry>
7643ac9a
ZJS
248 <term><option>-a</option></term>
249 <term><option>--attr-match=<replaceable>ATTRIBUTE</replaceable>=<replaceable>VALUE</replaceable></option></term>
63749b1a 250 <listitem>
a9bc94e5
YW
251 <para>Trigger events for devices with a matching sysfs attribute. If a value is specified along
252 with the attribute name, the content of the attribute is matched against the given value using
253 shell style pattern matching. If no value is specified, the existence of the sysfs attribute is
254 checked. When this option is specified multiple times, then each matching result is ANDed,
255 that is, only devices which have all specified attributes are triggered.</para>
63749b1a
KS
256 </listitem>
257 </varlistentry>
258 <varlistentry>
7643ac9a
ZJS
259 <term><option>-A</option></term>
260 <term><option>--attr-nomatch=<replaceable>ATTRIBUTE</replaceable>=<replaceable>VALUE</replaceable></option></term>
63749b1a 261 <listitem>
a9bc94e5
YW
262 <para>Do not trigger events for devices with a matching sysfs attribute. If a value is specified
263 along with the attribute name, the content of the attribute is matched against the given value
264 using shell style pattern matching. If no value is specified, the existence of the sysfs attribute
265 is checked. When this option is specified multiple times, then each matching result is ANDed,
266 that is, only devices which have none of the specified attributes are triggered.</para>
63749b1a
KS
267 </listitem>
268 </varlistentry>
269 <varlistentry>
7643ac9a
ZJS
270 <term><option>-p</option></term>
271 <term><option>--property-match=<replaceable>PROPERTY</replaceable>=<replaceable>VALUE</replaceable></option></term>
63749b1a 272 <listitem>
a9bc94e5
YW
273 <para>Trigger events for devices with a matching property value. This option supports shell style
274 pattern matching. When this option is specified more than once, then each matching result is ORed,
275 that is, devices which have one of the specified properties are triggered.</para>
63749b1a
KS
276 </listitem>
277 </varlistentry>
278 <varlistentry>
7643ac9a
ZJS
279 <term><option>-g</option></term>
280 <term><option>--tag-match=<replaceable>PROPERTY</replaceable></option></term>
63749b1a 281 <listitem>
a9bc94e5
YW
282 <para>Trigger events for devices with a matching tag. When this option is specified multiple times,
283 then each matching result is ANDed, that is, devices which have all specified tags are triggered.</para>
63749b1a
KS
284 </listitem>
285 </varlistentry>
286 <varlistentry>
7643ac9a 287 <term><option>-y</option></term>
a9bc94e5 288 <term><option>--sysname-match=<replaceable>NAME</replaceable></option></term>
63749b1a 289 <listitem>
a9bc94e5
YW
290 <para>Trigger events for devices for which the last component (i.e. the filename) of the
291 <filename>/sys</filename> path matches the specified <replaceable>PATH</replaceable>. This option
292 supports shell style pattern matching. When this option is specified more than once, then each
293 matching result is ORed, that is, all devices which have any of the specified
294 <replaceable>NAME</replaceable> are triggered.</para>
63749b1a
KS
295 </listitem>
296 </varlistentry>
80877656
ZJS
297 <varlistentry>
298 <term><option>--name-match=<replaceable>NAME</replaceable></option></term>
299 <listitem>
a9bc94e5 300 <para>Trigger events for devices with a matching device path. When this option is specified more than once,
5b3b0733 301 then each matching result is ORed, that is, all specified devices are triggered.</para>
80877656
ZJS
302 </listitem>
303 </varlistentry>
b05211fa 304 <varlistentry>
7643ac9a
ZJS
305 <term><option>-b</option></term>
306 <term><option>--parent-match=<replaceable>SYSPATH</replaceable></option></term>
b05211fa 307 <listitem>
a9bc94e5 308 <para>Trigger events for all children of a given device. When this option is specified more than once,
5b3b0733 309 then each matching result is ORed, that is, all children of each specified device are triggered.</para>
7643ac9a 310 </listitem>
792cc203
MH
311 </varlistentry>
312 <varlistentry>
313 <term><option>-w</option></term>
314 <term><option>--settle</option></term>
315 <listitem>
316 <para>Apart from triggering events, also waits for those events to
317 finish. Note that this is different from calling <command>udevadm
318 settle</command>. <command>udevadm settle</command> waits for all
319 events to finish. This option only waits for events triggered by
320 the same command to finish.</para>
321 </listitem>
7643ac9a 322 </varlistentry>
2001622c
YW
323 <varlistentry>
324 <term><option>--wait-daemon[=<replaceable>SECONDS</replaceable>]</option></term>
325 <listitem>
326 <para>Before triggering uevents, wait for systemd-udevd daemon to be initialized.
327 Optionally takes timeout value. Default timeout is 5 seconds. This is equivalent to invoke
328 invoking <command>udevadm control --ping</command> before <command>udevadm trigger</command>.</para>
329 </listitem>
330 </varlistentry>
c94c581c 331
c94c581c 332 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a 333 </variablelist>
80877656 334
5b3b0733
YW
335 <para>In addition, optional positional arguments can be used
336 to specify device names or sys paths. They must start with
80877656
ZJS
337 <filename>/dev</filename> or <filename>/sys</filename>
338 respectively.</para>
63749b1a 339 </refsect2>
225cb03b 340
80877656
ZJS
341 <refsect2><title>udevadm settle
342 <arg choice="opt"><replaceable>options</replaceable></arg>
343 </title>
63749b1a
KS
344 <para>Watches the udev event queue, and exits if all current events are handled.</para>
345 <variablelist>
346 <varlistentry>
7643ac9a
ZJS
347 <term><option>-t</option></term>
348 <term><option>--timeout=<replaceable>SECONDS</replaceable></option></term>
63749b1a 349 <listitem>
7643ac9a
ZJS
350 <para>Maximum number of seconds to wait for the event
351 queue to become empty. The default value is 120 seconds. A
352 value of 0 will check if the queue is empty and always
353 return immediately.</para>
63749b1a
KS
354 </listitem>
355 </varlistentry>
63749b1a 356 <varlistentry>
7643ac9a
ZJS
357 <term><option>-E</option></term>
358 <term><option>--exit-if-exists=<replaceable>FILE</replaceable></option></term>
63749b1a
KS
359 <listitem>
360 <para>Stop waiting if file exists.</para>
361 </listitem>
362 </varlistentry>
c94c581c 363
c94c581c 364 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a
KS
365 </variablelist>
366 </refsect2>
225cb03b 367
c94c581c 368 <refsect2><title>udevadm control <replaceable>option</replaceable></title>
63749b1a
KS
369 <para>Modify the internal state of the running udev daemon.</para>
370 <variablelist>
ff2c503d 371 <varlistentry>
bd8420c5 372 <term><option>-e</option></term>
ff2c503d
KS
373 <term><option>--exit</option></term>
374 <listitem>
d0d7e102
YW
375 <para>Signal and wait for systemd-udevd to exit. Note that <filename>systemd-udevd.service</filename>
376 contains <option>Restart=always</option> and so as a result, this option restarts systemd-udevd.
377 If you want to stop <filename>systemd-udevd.service</filename>, please use the following:
378 <programlisting>systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd.service</programlisting>
379 </para>
ff2c503d
KS
380 </listitem>
381 </varlistentry>
63749b1a 382 <varlistentry>
7643ac9a 383 <term><option>-l</option></term>
63749b1a
KS
384 <term><option>--log-priority=<replaceable>value</replaceable></option></term>
385 <listitem>
e03234a1
ZJS
386 <para>Set the internal log level of
387 <filename>systemd-udevd</filename>. Valid values are the
388 numerical syslog priorities or their textual
389 representations: <option>emerg</option>,
390 <option>alert</option>, <option>crit</option>,
391 <option>err</option>, <option>warning</option>,
392 <option>notice</option>, <option>info</option>, and
393 <option>debug</option>.</para>
63749b1a
KS
394 </listitem>
395 </varlistentry>
396 <varlistentry>
7643ac9a 397 <term><option>-s</option></term>
63749b1a
KS
398 <term><option>--stop-exec-queue</option></term>
399 <listitem>
f13b388f 400 <para>Signal systemd-udevd to stop executing new events. Incoming events
63749b1a
KS
401 will be queued.</para>
402 </listitem>
403 </varlistentry>
404 <varlistentry>
7643ac9a 405 <term><option>-S</option></term>
63749b1a
KS
406 <term><option>--start-exec-queue</option></term>
407 <listitem>
f13b388f 408 <para>Signal systemd-udevd to enable the execution of events.</para>
63749b1a
KS
409 </listitem>
410 </varlistentry>
411 <varlistentry>
7643ac9a 412 <term><option>-R</option></term>
7c85d636 413 <term><option>--reload</option></term>
63749b1a 414 <listitem>
f13b388f 415 <para>Signal systemd-udevd to reload the rules files and other databases like the kernel
7c85d636
KS
416 module index. Reloading rules and databases does not apply any changes to already
417 existing devices; the new configuration will only be applied to new events.</para>
63749b1a
KS
418 </listitem>
419 </varlistentry>
420 <varlistentry>
7643ac9a 421 <term><option>-p</option></term>
63749b1a
KS
422 <term><option>--property=<replaceable>KEY</replaceable>=<replaceable>value</replaceable></option></term>
423 <listitem>
424 <para>Set a global property for all events.</para>
425 </listitem>
426 </varlistentry>
427 <varlistentry>
7643ac9a 428 <term><option>-m</option></term>
87d55ff6 429 <term><option>--children-max=</option><replaceable>value</replaceable></term>
63749b1a 430 <listitem>
f13b388f 431 <para>Set the maximum number of events, systemd-udevd will handle at the
63749b1a
KS
432 same time.</para>
433 </listitem>
434 </varlistentry>
a82340cc
YW
435 <varlistentry>
436 <term><option>--ping</option></term>
437 <listitem>
438 <para>Send a ping message to systemd-udevd and wait for the reply. This may be useful to check that
439 systemd-udevd daemon is running.</para>
440 </listitem>
441 </varlistentry>
ff2c503d 442 <varlistentry>
c94c581c 443 <term><option>-t</option></term>
ff2c503d
KS
444 <term><option>--timeout=</option><replaceable>seconds</replaceable></term>
445 <listitem>
7e505069 446 <para>The maximum number of seconds to wait for a reply from systemd-udevd.</para>
ff2c503d
KS
447 </listitem>
448 </varlistentry>
c94c581c 449
c94c581c 450 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a
KS
451 </variablelist>
452 </refsect2>
225cb03b 453
80877656
ZJS
454 <refsect2><title>udevadm monitor
455 <arg choice="opt"><replaceable>options</replaceable></arg>
456 </title>
63749b1a
KS
457 <para>Listens to the kernel uevents and events sent out by a udev rule
458 and prints the devpath of the event to the console. It can be used to analyze the
459 event timing, by comparing the timestamps of the kernel uevent and the udev event.
460 </para>
461 <variablelist>
462 <varlistentry>
7643ac9a 463 <term><option>-k</option></term>
63749b1a
KS
464 <term><option>--kernel</option></term>
465 <listitem>
466 <para>Print the kernel uevents.</para>
467 </listitem>
468 </varlistentry>
469 <varlistentry>
7643ac9a 470 <term><option>-u</option></term>
63749b1a
KS
471 <term><option>--udev</option></term>
472 <listitem>
473 <para>Print the udev event after the rule processing.</para>
474 </listitem>
475 </varlistentry>
476 <varlistentry>
7643ac9a 477 <term><option>-p</option></term>
63749b1a
KS
478 <term><option>--property</option></term>
479 <listitem>
480 <para>Also print the properties of the event.</para>
481 </listitem>
482 </varlistentry>
483 <varlistentry>
7643ac9a 484 <term><option>-s</option></term>
63749b1a
KS
485 <term><option>--subsystem-match=<replaceable>string[/string]</replaceable></option></term>
486 <listitem>
a9bc94e5
YW
487 <para>Filter kernel uevents and udev events by subsystem[/devtype]. Only events with a matching subsystem value will pass.
488 When this option is specified more than once, then each matching result is ORed, that is, all devices in the specified
489 subsystems are monitored.</para>
63749b1a
KS
490 </listitem>
491 </varlistentry>
492 <varlistentry>
7643ac9a 493 <term><option>-t</option></term>
63749b1a
KS
494 <term><option>--tag-match=<replaceable>string</replaceable></option></term>
495 <listitem>
a9bc94e5
YW
496 <para>Filter udev events by tag. Only udev events with a given tag attached will pass.
497 When this option is specified more than once, then each matching result is ORed, that is, devices which have one of the
498 specified tags are monitored.</para>
63749b1a
KS
499 </listitem>
500 </varlistentry>
c94c581c 501
c94c581c 502 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a
KS
503 </variablelist>
504 </refsect2>
225cb03b 505
80877656
ZJS
506 <refsect2><title>udevadm test
507 <arg choice="opt"><replaceable>options</replaceable></arg>
508 <arg><replaceable>devpath</replaceable></arg>
509 </title>
63749b1a
KS
510 <para>Simulate a udev event run for the given device, and print debug output.</para>
511 <variablelist>
512 <varlistentry>
7643ac9a 513 <term><option>-a</option></term>
63749b1a
KS
514 <term><option>--action=<replaceable>string</replaceable></option></term>
515 <listitem>
516 <para>The action string.</para>
517 </listitem>
518 </varlistentry>
519 <varlistentry>
7643ac9a 520 <term><option>-N</option></term>
124b48b0 521 <term><option>--resolve-names=<constant>early</constant>|<constant>late</constant>|<constant>never</constant></option></term>
63749b1a 522 <listitem>
124b48b0
ZJS
523 <para>Specify when udevadm should resolve names of users
524 and groups. When set to <constant>early</constant> (the
72f4d966
JE
525 default), names will be resolved when the rules are
526 parsed. When set to <constant>late</constant>, names will
124b48b0 527 be resolved for every event. When set to
72f4d966 528 <constant>never</constant>, names will never be resolved
124b48b0 529 and all devices will be owned by root.</para>
63749b1a
KS
530 </listitem>
531 </varlistentry>
c94c581c 532
c94c581c 533 <xi:include href="standard-options.xml" xpointer="help" />
63749b1a
KS
534 </variablelist>
535 </refsect2>
d7867b31 536
80877656
ZJS
537 <refsect2><title>udevadm test-builtin
538 <arg choice="opt"><replaceable>options</replaceable></arg>
539 <arg><replaceable>command</replaceable></arg>
540 <arg><replaceable>devpath</replaceable></arg>
541 </title>
7643ac9a
ZJS
542 <para>Run a built-in command <replaceable>COMMAND</replaceable>
543 for device <replaceable>DEVPATH</replaceable>, and print debug
544 output.</para>
d7867b31 545 <variablelist>
c94c581c 546 <xi:include href="standard-options.xml" xpointer="help" />
d7867b31
KS
547 </variablelist>
548 </refsect2>
63749b1a 549 </refsect1>
225cb03b 550
63749b1a
KS
551 <refsect1>
552 <title>See Also</title>
553 <para><citerefentry>
554 <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum>
7d06ef0a 555 </citerefentry>,
63749b1a 556 <citerefentry>
b79f817b 557 <refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum>
63749b1a
KS
558 </citerefentry></para>
559 </refsect1>
560</refentry>