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