chiark / gitweb /
libvolume_id: squashfs - add endianess support for LZMA compression
[elogind.git] / udevadm.8
1 .\"     Title: udevadm
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
4 .\"      Date: November 2007
5 .\"    Manual: udevadm
6 .\"    Source: udev
7 .\"
8 .TH "UDEVADM" "8" "November 2007" "udev" "udevadm"
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 udevadm - udev management tool
15 .SH "SYNOPSIS"
16 .HP 21
17 \fBudevadm info \fR\fB[options]\fR
18 .HP 24
19 \fBudevadm trigger \fR\fB[options]\fR
20 .HP 23
21 \fBudevadm settle \fR\fB[options]\fR
22 .HP 36
23 \fBudevadm control \fR\fB[options]\fR\fB \fR\fB\fIinstruction\fR\fR
24 .HP 24
25 \fBudevadm monitor \fR\fB[options]\fR
26 .HP 29
27 \fBudevadm test \fR\fB[options]\fR\fB \fR\fB\fIdevpath\fR\fR
28 .HP 16
29 \fBudevadm version\fR
30 .HP 13
31 \fBudevadm help\fR
32 .SH "DESCRIPTION"
33 .PP
34 udevadm expects a command and command specific options\. It controls the runtime behavior of udev, requests kernel events, manages the event queue, and provides simple debugging mechanisms\.
35 .SH "OPTIONS"
36 .SS "udevadm info \fIoptions\fR"
37 .PP
38 Queries the udev database for device information stored in the udev database\. It can also query the properties of a device from its sysfs representation to help creating udev rules that match this device\.
39 .PP
40 \fB\-\-query=\fR\fB\fItype\fR\fR
41 .RS 4
42 Query the database for specified type of device data\. It needs the
43 \fB\-\-path\fR
44 or
45 \fB\-\-name\fR
46 to identify the specified device\. Valid queries are:
47 \fBname\fR,
48 \fBsymlink\fR,
49 \fBpath\fR,
50 \fBenv\fR,
51 \fBall\fR\.
52 .RE
53 .PP
54 \fB\-\-path=\fR\fB\fIdevpath\fR\fR
55 .RS 4
56 The devpath of the device to query\.
57 .RE
58 .PP
59 \fB\-\-name=\fR\fB\fIfile\fR\fR
60 .RS 4
61 The name of the device node or a symlink to query
62 .RE
63 .PP
64 \fB\-\-root\fR
65 .RS 4
66 The udev root directory:
67 \fI/dev\fR\. If used in conjunction with a
68 \fBname\fR
69 or
70 \fBsymlink\fR
71 query, the query returns the absolute path including the root directory\.
72 .RE
73 .PP
74 \fB\-\-attribute\-walk\fR
75 .RS 4
76 Print all sysfs properties of the specified device that can be used in udev rules to match the specified device\. It prints all devices along the chain, up to the root of sysfs that can be used in udev rules\.
77 .RE
78 .PP
79 \fB\-\-device\-id\-of\-file=\fR\fB\fIfile\fR\fR
80 .RS 4
81 Print major/minor numbers of the underlying device, where the file lives on\.
82 .RE
83 .PP
84 \fB\-\-export\-db\fR
85 .RS 4
86 Export the content of the udev database\.
87 .RE
88 .PP
89 \fB\-\-version\fR
90 .RS 4
91 Print version\.
92 .RE
93 .PP
94 \fB\-\-help\fR
95 .RS 4
96 Print help text\.
97 .RE
98 .SS "udevadm trigger [options]"
99 .PP
100 Request kernel device uevents, usually used to replay events at system coldplug\.
101 .PP
102 \fB\-\-verbose\fR
103 .RS 4
104 Print the list of devices which will be triggered\.
105 .RE
106 .PP
107 \fB\-\-dry\-run\fR
108 .RS 4
109 Do not actually trigger the event\.
110 .RE
111 .PP
112 \fB\-\-retry\-failed\fR
113 .RS 4
114 Trigger only the events which are failed during a previous run\.
115 .RE
116 .PP
117 \fB\-\-action=\fR\fB\fIaction\fR\fR
118 .RS 4
119 Type of event to be triggered\. The default value is "add"\.
120 .RE
121 .PP
122 \fB\-\-subsystem\-match=\fR\fB\fIsubsystem\fR\fR
123 .RS 4
124 Trigger events for devices which belong to a matching subsystem\. This option can be specified multiple times and supports shell style pattern matching\.
125 .RE
126 .PP
127 \fB\-\-subsystem\-nomatch=\fR\fB\fIsubsystem\fR\fR
128 .RS 4
129 Do not trigger events for devices which belong to a matching subsystem\. This option can be specified multiple times and supports shell style pattern matching\.
130 .RE
131 .PP
132 \fB\-\-attr\-match=\fR\fB\fIattribute=value\fR\fR
133 .RS 4
134 Trigger events for devices with a matching sysfs attribute\. If a value is specified along with the attribute name, the content of the attribute is matched against the given value using shell style pattern matching\. If no value is specified, the existence of the sysfs attribute is checked\. This option can be specified multiple times\.
135 .RE
136 .PP
137 \fB\-\-attr\-nomatch\fR\fB\fIattribute=value\fR\fR
138 .RS 4
139 Do not trigger events for devices with a matching sysfs attribute\. If a value is specified along with the attribute name, the content of the attribute is matched against the given value using shell style pattern matching\. If no value is specified, the existence of the sysfs attribute is checked\. This option can be specified multiple times\.
140 .RE
141 .SS "udevadm settle [options]"
142 .PP
143 Watches the udev event queue, and exits if all current events are handled\.
144 .PP
145 \fB\-\-timeout=\fR\fB\fIseconds\fR\fR
146 .RS 4
147 Maximum number of seconds to wait for the event queue to become empty\. The default value is 180 seconds\.
148 .RE
149 .PP
150 \fB\-\-help\fR
151 .RS 4
152 Print help text\.
153 .RE
154 .SS "udevadm control \fIcommand\fR"
155 .PP
156 Modify the internal state of the running udev daemon\.
157 .PP
158 \fB\-\-log_priority=\fR\fB\fIvalue\fR\fR
159 .RS 4
160 Set the internal log level of udevd\. Valid values are the numerical syslog priorities or their textual representations:
161 \fBerr\fR,
162 \fBinfo\fR
163 and
164 \fBdebug\fR\.
165 .RE
166 .PP
167 \fB\-\-stop_exec_queue\fR
168 .RS 4
169 Signal udevd to stop executing new events\. Incoming events will be queued\.
170 .RE
171 .PP
172 \fB\-\-start_exec_queue\fR
173 .RS 4
174 Signal udevd to enable the execution of events\.
175 .RE
176 .PP
177 \fB\-\-reload_rules\fR
178 .RS 4
179 Signal udevd to reload the rules from the config\.
180 .RE
181 .PP
182 \fB\-\-env \fR\fB\fIvar\fR\fR\fB=\fR\fB\fIvalue\fR\fR
183 .RS 4
184 Set global variable\.
185 .RE
186 .PP
187 \fB\-\-max_childs\fR
188 .RS 4
189 Set the maximum number of events, udevd will handle at the same time\.
190 .RE
191 .PP
192 \fB\-\-max_childs_running\fR
193 .RS 4
194 Set the maximum number of events, which are allowed to run at the same time\.
195 .RE
196 .PP
197 \fB\-\-help\fR
198 .RS 4
199 Print help text\.
200 .RE
201 .SS "udevadm monitor [options]"
202 .PP
203 Listens to the kernel uevents and events sent out by a udev rule and prints the devpath of the event to the console\. It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev event\.
204 .PP
205 \fB\-\-environment\fR
206 .RS 4
207 Print the complete environment for all events\. Can be used to compare the kernel supplied and the udev added environment values\.
208 .RE
209 .PP
210 \fB\-\-kernel\fR
211 .RS 4
212 Print the kernel uevents\.
213 .RE
214 .PP
215 \fB\-\-udev\fR
216 .RS 4
217 Print the udev event after the rule processing\.
218 .RE
219 .PP
220 \fB\-\-help\fR
221 .RS 4
222 Print help text\.
223 .RE
224 .SS "udevadm test [options] \fIdevpath\fR"
225 .PP
226 Simulate a udev event run for the given device, and print out debug output\. Unless forced to, no device node or symlink will be created\.
227 .PP
228 \fB\-\-action=\fR\fB\fIstring\fR\fR
229 .RS 4
230 The action string\.
231 .RE
232 .PP
233 \fB\-\-subsystem=\fR\fB\fIstring\fR\fR
234 .RS 4
235 The subsystem string\.
236 .RE
237 .PP
238 \fB\-\-force\fR
239 .RS 4
240 Force the creation of a device node or symlink\. Usually the test run prints only debug output\.
241 .RE
242 .PP
243 \fB\-\-help\fR
244 .RS 4
245 Print help text\.
246 .RE
247 .SS "udevadm version"
248 .PP
249 Print version number\.
250 .SS "udevadm help"
251 .PP
252 Print help text\.
253 .SH "AUTHOR"
254 .PP
255 Written by Kay Sievers
256 <kay\.sievers@vrfy\.org>\.
257 .SH "SEE ALSO"
258 .PP
259 \fBudev\fR(7)
260 \fBudevd\fR(8)