]>
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> | |
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> |
cd648ae1 YW |
223 | <para>Type of event to be triggered. Possible actions are <literal>add</literal>, |
224 | <literal>remove</literal>, <literal>change</literal>, <literal>move</literal>, | |
225 | <literal>online</literal>, <literal>offline</literal>, <literal>bind</literal>, | |
226 | and <literal>unbind</literal>. The default value is <literal>change</literal>.</para> | |
63749b1a KS |
227 | </listitem> |
228 | </varlistentry> | |
229 | <varlistentry> | |
7643ac9a ZJS |
230 | <term><option>-s</option></term> |
231 | <term><option>--subsystem-match=<replaceable>SUBSYSTEM</replaceable></option></term> | |
63749b1a | 232 | <listitem> |
7643ac9a | 233 | <para>Trigger events for devices which belong to a |
a9bc94e5 YW |
234 | matching subsystem. This option supports shell style pattern matching. |
235 | When this option is specified more than once, then each matching result is ORed, that is, | |
236 | all the devices in each subsystem are triggered.</para> | |
63749b1a KS |
237 | </listitem> |
238 | </varlistentry> | |
239 | <varlistentry> | |
7643ac9a ZJS |
240 | <term><option>-S</option></term> |
241 | <term><option>--subsystem-nomatch=<replaceable>SUBSYSTEM</replaceable></option></term> | |
63749b1a KS |
242 | <listitem> |
243 | <para>Do not trigger events for devices which belong to a matching subsystem. This option | |
a9bc94e5 YW |
244 | supports shell style pattern matching. When this option is specified more than once, |
245 | then each matching result is ANDed, that is, devices which do not match all specified | |
246 | subsystems are triggered.</para> | |
63749b1a KS |
247 | </listitem> |
248 | </varlistentry> | |
249 | <varlistentry> | |
7643ac9a ZJS |
250 | <term><option>-a</option></term> |
251 | <term><option>--attr-match=<replaceable>ATTRIBUTE</replaceable>=<replaceable>VALUE</replaceable></option></term> | |
63749b1a | 252 | <listitem> |
a9bc94e5 YW |
253 | <para>Trigger events for devices with a matching sysfs attribute. If a value is specified along |
254 | with the attribute name, the content of the attribute is matched against the given value using | |
255 | shell style pattern matching. If no value is specified, the existence of the sysfs attribute is | |
256 | checked. When this option is specified multiple times, then each matching result is ANDed, | |
257 | that is, only devices which have all specified attributes are triggered.</para> | |
63749b1a KS |
258 | </listitem> |
259 | </varlistentry> | |
260 | <varlistentry> | |
7643ac9a ZJS |
261 | <term><option>-A</option></term> |
262 | <term><option>--attr-nomatch=<replaceable>ATTRIBUTE</replaceable>=<replaceable>VALUE</replaceable></option></term> | |
63749b1a | 263 | <listitem> |
a9bc94e5 YW |
264 | <para>Do not trigger events for devices with a matching sysfs attribute. If a value is specified |
265 | along with the attribute name, the content of the attribute is matched against the given value | |
266 | using shell style pattern matching. If no value is specified, the existence of the sysfs attribute | |
267 | is checked. When this option is specified multiple times, then each matching result is ANDed, | |
268 | that is, only devices which have none of the specified attributes are triggered.</para> | |
63749b1a KS |
269 | </listitem> |
270 | </varlistentry> | |
271 | <varlistentry> | |
7643ac9a ZJS |
272 | <term><option>-p</option></term> |
273 | <term><option>--property-match=<replaceable>PROPERTY</replaceable>=<replaceable>VALUE</replaceable></option></term> | |
63749b1a | 274 | <listitem> |
a9bc94e5 YW |
275 | <para>Trigger events for devices with a matching property value. This option supports shell style |
276 | pattern matching. When this option is specified more than once, then each matching result is ORed, | |
277 | that is, devices which have one of the specified properties are triggered.</para> | |
63749b1a KS |
278 | </listitem> |
279 | </varlistentry> | |
280 | <varlistentry> | |
7643ac9a ZJS |
281 | <term><option>-g</option></term> |
282 | <term><option>--tag-match=<replaceable>PROPERTY</replaceable></option></term> | |
63749b1a | 283 | <listitem> |
a9bc94e5 YW |
284 | <para>Trigger events for devices with a matching tag. When this option is specified multiple times, |
285 | then each matching result is ANDed, that is, devices which have all specified tags are triggered.</para> | |
63749b1a KS |
286 | </listitem> |
287 | </varlistentry> | |
288 | <varlistentry> | |
7643ac9a | 289 | <term><option>-y</option></term> |
a9bc94e5 | 290 | <term><option>--sysname-match=<replaceable>NAME</replaceable></option></term> |
63749b1a | 291 | <listitem> |
a9bc94e5 YW |
292 | <para>Trigger events for devices for which the last component (i.e. the filename) of the |
293 | <filename>/sys</filename> path matches the specified <replaceable>PATH</replaceable>. This option | |
294 | supports shell style pattern matching. When this option is specified more than once, then each | |
295 | matching result is ORed, that is, all devices which have any of the specified | |
296 | <replaceable>NAME</replaceable> are triggered.</para> | |
63749b1a KS |
297 | </listitem> |
298 | </varlistentry> | |
80877656 ZJS |
299 | <varlistentry> |
300 | <term><option>--name-match=<replaceable>NAME</replaceable></option></term> | |
301 | <listitem> | |
a9bc94e5 | 302 | <para>Trigger events for devices with a matching device path. When this option is specified more than once, |
5b3b0733 | 303 | then each matching result is ORed, that is, all specified devices are triggered.</para> |
80877656 ZJS |
304 | </listitem> |
305 | </varlistentry> | |
b05211fa | 306 | <varlistentry> |
7643ac9a ZJS |
307 | <term><option>-b</option></term> |
308 | <term><option>--parent-match=<replaceable>SYSPATH</replaceable></option></term> | |
b05211fa | 309 | <listitem> |
a9bc94e5 | 310 | <para>Trigger events for all children of a given device. When this option is specified more than once, |
5b3b0733 | 311 | then each matching result is ORed, that is, all children of each specified device are triggered.</para> |
7643ac9a | 312 | </listitem> |
792cc203 MH |
313 | </varlistentry> |
314 | <varlistentry> | |
315 | <term><option>-w</option></term> | |
316 | <term><option>--settle</option></term> | |
317 | <listitem> | |
318 | <para>Apart from triggering events, also waits for those events to | |
319 | finish. Note that this is different from calling <command>udevadm | |
320 | settle</command>. <command>udevadm settle</command> waits for all | |
321 | events to finish. This option only waits for events triggered by | |
322 | the same command to finish.</para> | |
323 | </listitem> | |
7643ac9a | 324 | </varlistentry> |
2001622c YW |
325 | <varlistentry> |
326 | <term><option>--wait-daemon[=<replaceable>SECONDS</replaceable>]</option></term> | |
327 | <listitem> | |
328 | <para>Before triggering uevents, wait for systemd-udevd daemon to be initialized. | |
329 | Optionally takes timeout value. Default timeout is 5 seconds. This is equivalent to invoke | |
330 | invoking <command>udevadm control --ping</command> before <command>udevadm trigger</command>.</para> | |
331 | </listitem> | |
332 | </varlistentry> | |
c94c581c | 333 | |
c94c581c | 334 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a | 335 | </variablelist> |
80877656 | 336 | |
5b3b0733 YW |
337 | <para>In addition, optional positional arguments can be used |
338 | to specify device names or sys paths. They must start with | |
80877656 ZJS |
339 | <filename>/dev</filename> or <filename>/sys</filename> |
340 | respectively.</para> | |
63749b1a | 341 | </refsect2> |
225cb03b | 342 | |
80877656 ZJS |
343 | <refsect2><title>udevadm settle |
344 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
345 | </title> | |
63749b1a KS |
346 | <para>Watches the udev event queue, and exits if all current events are handled.</para> |
347 | <variablelist> | |
348 | <varlistentry> | |
7643ac9a ZJS |
349 | <term><option>-t</option></term> |
350 | <term><option>--timeout=<replaceable>SECONDS</replaceable></option></term> | |
63749b1a | 351 | <listitem> |
7643ac9a ZJS |
352 | <para>Maximum number of seconds to wait for the event |
353 | queue to become empty. The default value is 120 seconds. A | |
354 | value of 0 will check if the queue is empty and always | |
355 | return immediately.</para> | |
63749b1a KS |
356 | </listitem> |
357 | </varlistentry> | |
63749b1a | 358 | <varlistentry> |
7643ac9a ZJS |
359 | <term><option>-E</option></term> |
360 | <term><option>--exit-if-exists=<replaceable>FILE</replaceable></option></term> | |
63749b1a KS |
361 | <listitem> |
362 | <para>Stop waiting if file exists.</para> | |
363 | </listitem> | |
364 | </varlistentry> | |
c94c581c | 365 | |
c94c581c | 366 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
367 | </variablelist> |
368 | </refsect2> | |
225cb03b | 369 | |
c94c581c | 370 | <refsect2><title>udevadm control <replaceable>option</replaceable></title> |
63749b1a KS |
371 | <para>Modify the internal state of the running udev daemon.</para> |
372 | <variablelist> | |
ff2c503d | 373 | <varlistentry> |
bd8420c5 | 374 | <term><option>-e</option></term> |
ff2c503d KS |
375 | <term><option>--exit</option></term> |
376 | <listitem> | |
6371db93 YW |
377 | <para>Signal and wait for systemd-udevd to exit. No option except for |
378 | <option>--timeout</option> can be specified after this option. | |
379 | Note that <filename>systemd-udevd.service</filename> contains | |
380 | <option>Restart=always</option> and so as a result, this option restarts systemd-udevd. | |
d0d7e102 YW |
381 | If you want to stop <filename>systemd-udevd.service</filename>, please use the following: |
382 | <programlisting>systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd.service</programlisting> | |
383 | </para> | |
ff2c503d KS |
384 | </listitem> |
385 | </varlistentry> | |
63749b1a | 386 | <varlistentry> |
7643ac9a | 387 | <term><option>-l</option></term> |
63749b1a KS |
388 | <term><option>--log-priority=<replaceable>value</replaceable></option></term> |
389 | <listitem> | |
e03234a1 ZJS |
390 | <para>Set the internal log level of |
391 | <filename>systemd-udevd</filename>. Valid values are the | |
392 | numerical syslog priorities or their textual | |
393 | representations: <option>emerg</option>, | |
394 | <option>alert</option>, <option>crit</option>, | |
395 | <option>err</option>, <option>warning</option>, | |
396 | <option>notice</option>, <option>info</option>, and | |
397 | <option>debug</option>.</para> | |
63749b1a KS |
398 | </listitem> |
399 | </varlistentry> | |
400 | <varlistentry> | |
7643ac9a | 401 | <term><option>-s</option></term> |
63749b1a KS |
402 | <term><option>--stop-exec-queue</option></term> |
403 | <listitem> | |
f13b388f | 404 | <para>Signal systemd-udevd to stop executing new events. Incoming events |
63749b1a KS |
405 | will be queued.</para> |
406 | </listitem> | |
407 | </varlistentry> | |
408 | <varlistentry> | |
7643ac9a | 409 | <term><option>-S</option></term> |
63749b1a KS |
410 | <term><option>--start-exec-queue</option></term> |
411 | <listitem> | |
f13b388f | 412 | <para>Signal systemd-udevd to enable the execution of events.</para> |
63749b1a KS |
413 | </listitem> |
414 | </varlistentry> | |
415 | <varlistentry> | |
7643ac9a | 416 | <term><option>-R</option></term> |
7c85d636 | 417 | <term><option>--reload</option></term> |
63749b1a | 418 | <listitem> |
f13b388f | 419 | <para>Signal systemd-udevd to reload the rules files and other databases like the kernel |
7c85d636 KS |
420 | module index. Reloading rules and databases does not apply any changes to already |
421 | existing devices; the new configuration will only be applied to new events.</para> | |
63749b1a KS |
422 | </listitem> |
423 | </varlistentry> | |
424 | <varlistentry> | |
7643ac9a | 425 | <term><option>-p</option></term> |
63749b1a KS |
426 | <term><option>--property=<replaceable>KEY</replaceable>=<replaceable>value</replaceable></option></term> |
427 | <listitem> | |
428 | <para>Set a global property for all events.</para> | |
429 | </listitem> | |
430 | </varlistentry> | |
431 | <varlistentry> | |
7643ac9a | 432 | <term><option>-m</option></term> |
87d55ff6 | 433 | <term><option>--children-max=</option><replaceable>value</replaceable></term> |
63749b1a | 434 | <listitem> |
f13b388f | 435 | <para>Set the maximum number of events, systemd-udevd will handle at the |
63749b1a KS |
436 | same time.</para> |
437 | </listitem> | |
438 | </varlistentry> | |
a82340cc YW |
439 | <varlistentry> |
440 | <term><option>--ping</option></term> | |
441 | <listitem> | |
442 | <para>Send a ping message to systemd-udevd and wait for the reply. This may be useful to check that | |
443 | systemd-udevd daemon is running.</para> | |
444 | </listitem> | |
445 | </varlistentry> | |
ff2c503d | 446 | <varlistentry> |
c94c581c | 447 | <term><option>-t</option></term> |
ff2c503d KS |
448 | <term><option>--timeout=</option><replaceable>seconds</replaceable></term> |
449 | <listitem> | |
7e505069 | 450 | <para>The maximum number of seconds to wait for a reply from systemd-udevd.</para> |
ff2c503d KS |
451 | </listitem> |
452 | </varlistentry> | |
c94c581c | 453 | |
c94c581c | 454 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
455 | </variablelist> |
456 | </refsect2> | |
225cb03b | 457 | |
80877656 ZJS |
458 | <refsect2><title>udevadm monitor |
459 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
460 | </title> | |
63749b1a KS |
461 | <para>Listens to the kernel uevents and events sent out by a udev rule |
462 | and prints the devpath of the event to the console. It can be used to analyze the | |
463 | event timing, by comparing the timestamps of the kernel uevent and the udev event. | |
464 | </para> | |
465 | <variablelist> | |
466 | <varlistentry> | |
7643ac9a | 467 | <term><option>-k</option></term> |
63749b1a KS |
468 | <term><option>--kernel</option></term> |
469 | <listitem> | |
470 | <para>Print the kernel uevents.</para> | |
471 | </listitem> | |
472 | </varlistentry> | |
473 | <varlistentry> | |
7643ac9a | 474 | <term><option>-u</option></term> |
63749b1a KS |
475 | <term><option>--udev</option></term> |
476 | <listitem> | |
477 | <para>Print the udev event after the rule processing.</para> | |
478 | </listitem> | |
479 | </varlistentry> | |
480 | <varlistentry> | |
7643ac9a | 481 | <term><option>-p</option></term> |
63749b1a KS |
482 | <term><option>--property</option></term> |
483 | <listitem> | |
484 | <para>Also print the properties of the event.</para> | |
485 | </listitem> | |
486 | </varlistentry> | |
487 | <varlistentry> | |
7643ac9a | 488 | <term><option>-s</option></term> |
63749b1a KS |
489 | <term><option>--subsystem-match=<replaceable>string[/string]</replaceable></option></term> |
490 | <listitem> | |
a9bc94e5 YW |
491 | <para>Filter kernel uevents and udev events by subsystem[/devtype]. Only events with a matching subsystem value will pass. |
492 | When this option is specified more than once, then each matching result is ORed, that is, all devices in the specified | |
493 | subsystems are monitored.</para> | |
63749b1a KS |
494 | </listitem> |
495 | </varlistentry> | |
496 | <varlistentry> | |
7643ac9a | 497 | <term><option>-t</option></term> |
63749b1a KS |
498 | <term><option>--tag-match=<replaceable>string</replaceable></option></term> |
499 | <listitem> | |
a9bc94e5 YW |
500 | <para>Filter udev events by tag. Only udev events with a given tag attached will pass. |
501 | When this option is specified more than once, then each matching result is ORed, that is, devices which have one of the | |
502 | specified tags are monitored.</para> | |
63749b1a KS |
503 | </listitem> |
504 | </varlistentry> | |
c94c581c | 505 | |
c94c581c | 506 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
507 | </variablelist> |
508 | </refsect2> | |
225cb03b | 509 | |
80877656 ZJS |
510 | <refsect2><title>udevadm test |
511 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
512 | <arg><replaceable>devpath</replaceable></arg> | |
513 | </title> | |
63749b1a KS |
514 | <para>Simulate a udev event run for the given device, and print debug output.</para> |
515 | <variablelist> | |
516 | <varlistentry> | |
7643ac9a | 517 | <term><option>-a</option></term> |
63749b1a KS |
518 | <term><option>--action=<replaceable>string</replaceable></option></term> |
519 | <listitem> | |
520 | <para>The action string.</para> | |
521 | </listitem> | |
522 | </varlistentry> | |
523 | <varlistentry> | |
7643ac9a | 524 | <term><option>-N</option></term> |
124b48b0 | 525 | <term><option>--resolve-names=<constant>early</constant>|<constant>late</constant>|<constant>never</constant></option></term> |
63749b1a | 526 | <listitem> |
124b48b0 ZJS |
527 | <para>Specify when udevadm should resolve names of users |
528 | and groups. When set to <constant>early</constant> (the | |
72f4d966 JE |
529 | default), names will be resolved when the rules are |
530 | parsed. When set to <constant>late</constant>, names will | |
124b48b0 | 531 | be resolved for every event. When set to |
72f4d966 | 532 | <constant>never</constant>, names will never be resolved |
124b48b0 | 533 | and all devices will be owned by root.</para> |
63749b1a KS |
534 | </listitem> |
535 | </varlistentry> | |
c94c581c | 536 | |
c94c581c | 537 | <xi:include href="standard-options.xml" xpointer="help" /> |
63749b1a KS |
538 | </variablelist> |
539 | </refsect2> | |
d7867b31 | 540 | |
80877656 ZJS |
541 | <refsect2><title>udevadm test-builtin |
542 | <arg choice="opt"><replaceable>options</replaceable></arg> | |
543 | <arg><replaceable>command</replaceable></arg> | |
544 | <arg><replaceable>devpath</replaceable></arg> | |
545 | </title> | |
7643ac9a ZJS |
546 | <para>Run a built-in command <replaceable>COMMAND</replaceable> |
547 | for device <replaceable>DEVPATH</replaceable>, and print debug | |
548 | output.</para> | |
d7867b31 | 549 | <variablelist> |
c94c581c | 550 | <xi:include href="standard-options.xml" xpointer="help" /> |
d7867b31 KS |
551 | </variablelist> |
552 | </refsect2> | |
63749b1a | 553 | </refsect1> |
225cb03b | 554 | |
63749b1a KS |
555 | <refsect1> |
556 | <title>See Also</title> | |
557 | <para><citerefentry> | |
558 | <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum> | |
7d06ef0a | 559 | </citerefentry>, |
63749b1a | 560 | <citerefentry> |
b79f817b | 561 | <refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum> |
63749b1a KS |
562 | </citerefentry></para> |
563 | </refsect1> | |
564 | </refentry> |