]>
Commit | Line | Data |
---|---|---|
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> | |
146 | <para>Print output as key/value pairs. Values are enclosed in single quotes.</para> | |
147 | </listitem> | |
148 | </varlistentry> | |
149 | <varlistentry> | |
7643ac9a ZJS |
150 | <term><option>-P</option></term> |
151 | <term><option>--export-prefix=<replaceable>NAME</replaceable></option></term> | |
dc1791a9 KS |
152 | <listitem> |
153 | <para>Add a prefix to the key name of exported values.</para> | |
154 | </listitem> | |
155 | </varlistentry> | |
63749b1a | 156 | <varlistentry> |
7643ac9a ZJS |
157 | <term><option>-d</option></term> |
158 | <term><option>--device-id-of-file=<replaceable>FILE</replaceable></option></term> | |
63749b1a KS |
159 | <listitem> |
160 | <para>Print major/minor numbers of the underlying device, where the file | |
161 | lives on.</para> | |
162 | </listitem> | |
163 | </varlistentry> | |
164 | <varlistentry> | |
7643ac9a | 165 | <term><option>-e</option></term> |
63749b1a KS |
166 | <term><option>--export-db</option></term> |
167 | <listitem> | |
168 | <para>Export the content of the udev database.</para> | |
169 | </listitem> | |
170 | </varlistentry> | |
9ead6627 | 171 | <varlistentry> |
7643ac9a | 172 | <term><option>-c</option></term> |
9ead6627 KS |
173 | <term><option>--cleanup-db</option></term> |
174 | <listitem> | |
175 | <para>Cleanup the udev database.</para> | |
176 | </listitem> | |
177 | </varlistentry> | |
c94c581c | 178 | |
c94c581c | 179 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
180 | </variablelist> |
181 | </refsect2> | |
225cb03b | 182 | |
80877656 ZJS |
183 | <refsect2><title>udevadm trigger |
184 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
b6854081 ZJS |
185 | <arg choice="opt" rep="repeat"><replaceable>devpath</replaceable>|<replaceable>file</replaceable>|<replaceable>unit</replaceable></arg> |
186 | </title> | |
63749b1a | 187 | <para>Request device events from the kernel. Primarily used to replay events at system coldplug time.</para> |
b6854081 ZJS |
188 | |
189 | <para>Takes one or more device specifications as arguments. See the description of <command>info</command> | |
190 | above.</para> | |
191 | ||
63749b1a KS |
192 | <variablelist> |
193 | <varlistentry> | |
7643ac9a | 194 | <term><option>-v</option></term> |
63749b1a KS |
195 | <term><option>--verbose</option></term> |
196 | <listitem> | |
197 | <para>Print the list of devices which will be triggered.</para> | |
198 | </listitem> | |
199 | </varlistentry> | |
200 | <varlistentry> | |
7643ac9a | 201 | <term><option>-n</option></term> |
63749b1a KS |
202 | <term><option>--dry-run</option></term> |
203 | <listitem> | |
204 | <para>Do not actually trigger the event.</para> | |
205 | </listitem> | |
206 | </varlistentry> | |
207 | <varlistentry> | |
7643ac9a ZJS |
208 | <term><option>-t</option></term> |
209 | <term><option>--type=<replaceable>TYPE</replaceable></option></term> | |
63749b1a KS |
210 | <listitem> |
211 | <para>Trigger a specific type of devices. Valid types are: | |
864fde8a | 212 | <command>devices</command>, <command>subsystems</command>. |
63749b1a KS |
213 | The default value is <command>devices</command>.</para> |
214 | </listitem> | |
215 | </varlistentry> | |
216 | <varlistentry> | |
7643ac9a ZJS |
217 | <term><option>-c</option></term> |
218 | <term><option>--action=<replaceable>ACTION</replaceable></option></term> | |
63749b1a | 219 | <listitem> |
7643ac9a ZJS |
220 | <para>Type of event to be triggered. The default value is |
221 | <command>change</command>.</para> | |
63749b1a KS |
222 | </listitem> |
223 | </varlistentry> | |
224 | <varlistentry> | |
7643ac9a ZJS |
225 | <term><option>-s</option></term> |
226 | <term><option>--subsystem-match=<replaceable>SUBSYSTEM</replaceable></option></term> | |
63749b1a | 227 | <listitem> |
7643ac9a ZJS |
228 | <para>Trigger events for devices which belong to a |
229 | matching subsystem. This option can be specified multiple | |
230 | times and supports shell style pattern matching.</para> | |
63749b1a KS |
231 | </listitem> |
232 | </varlistentry> | |
233 | <varlistentry> | |
7643ac9a ZJS |
234 | <term><option>-S</option></term> |
235 | <term><option>--subsystem-nomatch=<replaceable>SUBSYSTEM</replaceable></option></term> | |
63749b1a KS |
236 | <listitem> |
237 | <para>Do not trigger events for devices which belong to a matching subsystem. This option | |
238 | can be specified multiple times and supports shell style pattern matching.</para> | |
239 | </listitem> | |
240 | </varlistentry> | |
241 | <varlistentry> | |
7643ac9a ZJS |
242 | <term><option>-a</option></term> |
243 | <term><option>--attr-match=<replaceable>ATTRIBUTE</replaceable>=<replaceable>VALUE</replaceable></option></term> | |
63749b1a | 244 | <listitem> |
7643ac9a ZJS |
245 | <para>Trigger events for devices with a matching sysfs |
246 | attribute. If a value is specified along with the | |
247 | attribute name, the content of the attribute is matched | |
248 | against the given value using shell style pattern | |
249 | matching. If no value is specified, the existence of the | |
250 | sysfs attribute is checked. This option can be specified | |
251 | multiple times.</para> | |
63749b1a KS |
252 | </listitem> |
253 | </varlistentry> | |
254 | <varlistentry> | |
7643ac9a ZJS |
255 | <term><option>-A</option></term> |
256 | <term><option>--attr-nomatch=<replaceable>ATTRIBUTE</replaceable>=<replaceable>VALUE</replaceable></option></term> | |
63749b1a | 257 | <listitem> |
7643ac9a ZJS |
258 | <para>Do not trigger events for devices with a matching |
259 | sysfs attribute. If a value is specified along with the | |
260 | attribute name, the content of the attribute is matched | |
261 | against the given value using shell style pattern | |
262 | matching. If no value is specified, the existence of the | |
263 | sysfs attribute is checked. This option can be specified | |
264 | multiple times.</para> | |
63749b1a KS |
265 | </listitem> |
266 | </varlistentry> | |
267 | <varlistentry> | |
7643ac9a ZJS |
268 | <term><option>-p</option></term> |
269 | <term><option>--property-match=<replaceable>PROPERTY</replaceable>=<replaceable>VALUE</replaceable></option></term> | |
63749b1a | 270 | <listitem> |
7643ac9a ZJS |
271 | <para>Trigger events for devices with a matching property |
272 | value. This option can be specified multiple times and | |
273 | supports shell style pattern matching.</para> | |
63749b1a KS |
274 | </listitem> |
275 | </varlistentry> | |
276 | <varlistentry> | |
7643ac9a ZJS |
277 | <term><option>-g</option></term> |
278 | <term><option>--tag-match=<replaceable>PROPERTY</replaceable></option></term> | |
63749b1a | 279 | <listitem> |
7643ac9a ZJS |
280 | <para>Trigger events for devices with a matching tag. This |
281 | option can be specified multiple times.</para> | |
63749b1a KS |
282 | </listitem> |
283 | </varlistentry> | |
284 | <varlistentry> | |
7643ac9a | 285 | <term><option>-y</option></term> |
80877656 | 286 | <term><option>--sysname-match=<replaceable>PATH</replaceable></option></term> |
63749b1a | 287 | <listitem> |
a5201ed6 LP |
288 | <para>Trigger events for devices for which the last component |
289 | (i.e. the filename) of the <filename>/sys</filename> path matches | |
290 | the specified <replaceable>PATH</replaceable>. This option can be | |
291 | specified multiple times and also supports shell style pattern | |
292 | matching.</para> | |
63749b1a KS |
293 | </listitem> |
294 | </varlistentry> | |
80877656 ZJS |
295 | <varlistentry> |
296 | <term><option>--name-match=<replaceable>NAME</replaceable></option></term> | |
297 | <listitem> | |
298 | <para>Trigger events for devices with a matching | |
a8eaaee7 | 299 | device path. This option can be specified multiple |
80877656 ZJS |
300 | times.</para> |
301 | </listitem> | |
302 | </varlistentry> | |
b05211fa | 303 | <varlistentry> |
7643ac9a ZJS |
304 | <term><option>-b</option></term> |
305 | <term><option>--parent-match=<replaceable>SYSPATH</replaceable></option></term> | |
b05211fa | 306 | <listitem> |
7643ac9a ZJS |
307 | <para>Trigger events for all children of a given |
308 | device.</para> | |
309 | </listitem> | |
792cc203 MH |
310 | </varlistentry> |
311 | <varlistentry> | |
312 | <term><option>-w</option></term> | |
313 | <term><option>--settle</option></term> | |
314 | <listitem> | |
315 | <para>Apart from triggering events, also waits for those events to | |
316 | finish. Note that this is different from calling <command>udevadm | |
317 | settle</command>. <command>udevadm settle</command> waits for all | |
318 | events to finish. This option only waits for events triggered by | |
319 | the same command to finish.</para> | |
320 | </listitem> | |
7643ac9a | 321 | </varlistentry> |
c94c581c | 322 | |
c94c581c | 323 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a | 324 | </variablelist> |
80877656 | 325 | |
b938cb90 | 326 | <para>In addition, optional positional arguments can be used |
80877656 ZJS |
327 | to specify device names or sys paths. They must start with |
328 | <filename>/dev</filename> or <filename>/sys</filename> | |
329 | respectively.</para> | |
63749b1a | 330 | </refsect2> |
225cb03b | 331 | |
80877656 ZJS |
332 | <refsect2><title>udevadm settle |
333 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
334 | </title> | |
63749b1a KS |
335 | <para>Watches the udev event queue, and exits if all current events are handled.</para> |
336 | <variablelist> | |
337 | <varlistentry> | |
7643ac9a ZJS |
338 | <term><option>-t</option></term> |
339 | <term><option>--timeout=<replaceable>SECONDS</replaceable></option></term> | |
63749b1a | 340 | <listitem> |
7643ac9a ZJS |
341 | <para>Maximum number of seconds to wait for the event |
342 | queue to become empty. The default value is 120 seconds. A | |
343 | value of 0 will check if the queue is empty and always | |
344 | return immediately.</para> | |
63749b1a KS |
345 | </listitem> |
346 | </varlistentry> | |
63749b1a | 347 | <varlistentry> |
7643ac9a ZJS |
348 | <term><option>-E</option></term> |
349 | <term><option>--exit-if-exists=<replaceable>FILE</replaceable></option></term> | |
63749b1a KS |
350 | <listitem> |
351 | <para>Stop waiting if file exists.</para> | |
352 | </listitem> | |
353 | </varlistentry> | |
c94c581c | 354 | |
c94c581c | 355 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
356 | </variablelist> |
357 | </refsect2> | |
225cb03b | 358 | |
c94c581c | 359 | <refsect2><title>udevadm control <replaceable>option</replaceable></title> |
63749b1a KS |
360 | <para>Modify the internal state of the running udev daemon.</para> |
361 | <variablelist> | |
ff2c503d | 362 | <varlistentry> |
bd8420c5 | 363 | <term><option>-e</option></term> |
ff2c503d KS |
364 | <term><option>--exit</option></term> |
365 | <listitem> | |
f13b388f | 366 | <para>Signal and wait for systemd-udevd to exit.</para> |
ff2c503d KS |
367 | </listitem> |
368 | </varlistentry> | |
63749b1a | 369 | <varlistentry> |
7643ac9a | 370 | <term><option>-l</option></term> |
63749b1a KS |
371 | <term><option>--log-priority=<replaceable>value</replaceable></option></term> |
372 | <listitem> | |
e03234a1 ZJS |
373 | <para>Set the internal log level of |
374 | <filename>systemd-udevd</filename>. Valid values are the | |
375 | numerical syslog priorities or their textual | |
376 | representations: <option>emerg</option>, | |
377 | <option>alert</option>, <option>crit</option>, | |
378 | <option>err</option>, <option>warning</option>, | |
379 | <option>notice</option>, <option>info</option>, and | |
380 | <option>debug</option>.</para> | |
63749b1a KS |
381 | </listitem> |
382 | </varlistentry> | |
383 | <varlistentry> | |
7643ac9a | 384 | <term><option>-s</option></term> |
63749b1a KS |
385 | <term><option>--stop-exec-queue</option></term> |
386 | <listitem> | |
f13b388f | 387 | <para>Signal systemd-udevd to stop executing new events. Incoming events |
63749b1a KS |
388 | will be queued.</para> |
389 | </listitem> | |
390 | </varlistentry> | |
391 | <varlistentry> | |
7643ac9a | 392 | <term><option>-S</option></term> |
63749b1a KS |
393 | <term><option>--start-exec-queue</option></term> |
394 | <listitem> | |
f13b388f | 395 | <para>Signal systemd-udevd to enable the execution of events.</para> |
63749b1a KS |
396 | </listitem> |
397 | </varlistentry> | |
398 | <varlistentry> | |
7643ac9a | 399 | <term><option>-R</option></term> |
7c85d636 | 400 | <term><option>--reload</option></term> |
63749b1a | 401 | <listitem> |
f13b388f | 402 | <para>Signal systemd-udevd to reload the rules files and other databases like the kernel |
7c85d636 KS |
403 | module index. Reloading rules and databases does not apply any changes to already |
404 | existing devices; the new configuration will only be applied to new events.</para> | |
63749b1a KS |
405 | </listitem> |
406 | </varlistentry> | |
407 | <varlistentry> | |
7643ac9a | 408 | <term><option>-p</option></term> |
63749b1a KS |
409 | <term><option>--property=<replaceable>KEY</replaceable>=<replaceable>value</replaceable></option></term> |
410 | <listitem> | |
411 | <para>Set a global property for all events.</para> | |
412 | </listitem> | |
413 | </varlistentry> | |
414 | <varlistentry> | |
7643ac9a | 415 | <term><option>-m</option></term> |
87d55ff6 | 416 | <term><option>--children-max=</option><replaceable>value</replaceable></term> |
63749b1a | 417 | <listitem> |
f13b388f | 418 | <para>Set the maximum number of events, systemd-udevd will handle at the |
63749b1a KS |
419 | same time.</para> |
420 | </listitem> | |
421 | </varlistentry> | |
ff2c503d | 422 | <varlistentry> |
c94c581c | 423 | <term><option>-t</option></term> |
ff2c503d KS |
424 | <term><option>--timeout=</option><replaceable>seconds</replaceable></term> |
425 | <listitem> | |
7e505069 | 426 | <para>The maximum number of seconds to wait for a reply from systemd-udevd.</para> |
ff2c503d KS |
427 | </listitem> |
428 | </varlistentry> | |
c94c581c | 429 | |
c94c581c | 430 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
431 | </variablelist> |
432 | </refsect2> | |
225cb03b | 433 | |
80877656 ZJS |
434 | <refsect2><title>udevadm monitor |
435 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
436 | </title> | |
63749b1a KS |
437 | <para>Listens to the kernel uevents and events sent out by a udev rule |
438 | and prints the devpath of the event to the console. It can be used to analyze the | |
439 | event timing, by comparing the timestamps of the kernel uevent and the udev event. | |
440 | </para> | |
441 | <variablelist> | |
442 | <varlistentry> | |
7643ac9a | 443 | <term><option>-k</option></term> |
63749b1a KS |
444 | <term><option>--kernel</option></term> |
445 | <listitem> | |
446 | <para>Print the kernel uevents.</para> | |
447 | </listitem> | |
448 | </varlistentry> | |
449 | <varlistentry> | |
7643ac9a | 450 | <term><option>-u</option></term> |
63749b1a KS |
451 | <term><option>--udev</option></term> |
452 | <listitem> | |
453 | <para>Print the udev event after the rule processing.</para> | |
454 | </listitem> | |
455 | </varlistentry> | |
456 | <varlistentry> | |
7643ac9a | 457 | <term><option>-p</option></term> |
63749b1a KS |
458 | <term><option>--property</option></term> |
459 | <listitem> | |
460 | <para>Also print the properties of the event.</para> | |
461 | </listitem> | |
462 | </varlistentry> | |
463 | <varlistentry> | |
7643ac9a | 464 | <term><option>-s</option></term> |
63749b1a KS |
465 | <term><option>--subsystem-match=<replaceable>string[/string]</replaceable></option></term> |
466 | <listitem> | |
aa9744df | 467 | <para>Filter kernel uevents and udev events by subsystem[/devtype]. Only events with a matching subsystem value will pass.</para> |
63749b1a KS |
468 | </listitem> |
469 | </varlistentry> | |
470 | <varlistentry> | |
7643ac9a | 471 | <term><option>-t</option></term> |
63749b1a KS |
472 | <term><option>--tag-match=<replaceable>string</replaceable></option></term> |
473 | <listitem> | |
aa9744df | 474 | <para>Filter udev events by tag. Only udev events with a given tag attached will pass.</para> |
63749b1a KS |
475 | </listitem> |
476 | </varlistentry> | |
c94c581c | 477 | |
c94c581c | 478 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
479 | </variablelist> |
480 | </refsect2> | |
225cb03b | 481 | |
80877656 ZJS |
482 | <refsect2><title>udevadm test |
483 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
484 | <arg><replaceable>devpath</replaceable></arg> | |
485 | </title> | |
63749b1a KS |
486 | <para>Simulate a udev event run for the given device, and print debug output.</para> |
487 | <variablelist> | |
488 | <varlistentry> | |
7643ac9a | 489 | <term><option>-a</option></term> |
63749b1a KS |
490 | <term><option>--action=<replaceable>string</replaceable></option></term> |
491 | <listitem> | |
492 | <para>The action string.</para> | |
493 | </listitem> | |
494 | </varlistentry> | |
495 | <varlistentry> | |
7643ac9a | 496 | <term><option>-N</option></term> |
124b48b0 | 497 | <term><option>--resolve-names=<constant>early</constant>|<constant>late</constant>|<constant>never</constant></option></term> |
63749b1a | 498 | <listitem> |
124b48b0 ZJS |
499 | <para>Specify when udevadm should resolve names of users |
500 | and groups. When set to <constant>early</constant> (the | |
72f4d966 JE |
501 | default), names will be resolved when the rules are |
502 | parsed. When set to <constant>late</constant>, names will | |
124b48b0 | 503 | be resolved for every event. When set to |
72f4d966 | 504 | <constant>never</constant>, names will never be resolved |
124b48b0 | 505 | and all devices will be owned by root.</para> |
63749b1a KS |
506 | </listitem> |
507 | </varlistentry> | |
c94c581c | 508 | |
c94c581c | 509 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
510 | </variablelist> |
511 | </refsect2> | |
d7867b31 | 512 | |
80877656 ZJS |
513 | <refsect2><title>udevadm test-builtin |
514 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
515 | <arg><replaceable>command</replaceable></arg> | |
516 | <arg><replaceable>devpath</replaceable></arg> | |
517 | </title> | |
7643ac9a ZJS |
518 | <para>Run a built-in command <replaceable>COMMAND</replaceable> |
519 | for device <replaceable>DEVPATH</replaceable>, and print debug | |
520 | output.</para> | |
d7867b31 | 521 | <variablelist> |
c94c581c | 522 | <xi:include href="standard-options.xml" xpointer="help" /> |
d7867b31 KS |
523 | </variablelist> |
524 | </refsect2> | |
63749b1a | 525 | </refsect1> |
225cb03b | 526 | |
63749b1a KS |
527 | <refsect1> |
528 | <title>See Also</title> | |
529 | <para><citerefentry> | |
530 | <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum> | |
7d06ef0a | 531 | </citerefentry>, |
63749b1a | 532 | <citerefentry> |
b79f817b | 533 | <refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum> |
63749b1a KS |
534 | </citerefentry></para> |
535 | </refsect1> | |
536 | </refentry> |