source: BOOK/final-system/common/udev.xml@ 408dce5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 408dce5 was f65d2a0, checked in by Chris Staub <chris@…>, 17 years ago

Removed udevsend and added udevsettle to udev list of installed programs, and added libvolume_id

  • Property mode set to 100644
File size: 11.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-udev" role="wrap">
9 <?dbhtml filename="udev.html"?>
10
11 <title>Udev-&udev-version;</title>
12
13 <indexterm zone="ch-system-udev">
14 <primary sortas="a-Udev">Udev</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Udev package contains programs for dynamic creation of device
21 nodes.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Udev</title>
27
28 <para os="a">Compile the package:</para>
29
30<screen os="b"><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/collect \
31 extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator \
32 extras/scsi_id extras/usb_id extras/volume_id" udevdir=/dev</userinput></screen>
33
34 <variablelist os="c">
35 <title>The meaning of the make parameter:</title>
36
37 <varlistentry>
38 <term><parameter>EXTRAS="extras/ata_id extras/cdrom_id extras/collect
39 extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator
40 extras/scsi_id extras/usb_id extras/volume_id"</parameter></term>
41 <listitem>
42 <para>This builds the helper applications that are used with
43 udev. The helper programs assist in correct handling of devices.</para>
44 </listitem>
45 </varlistentry>
46
47 </variablelist>
48
49 <para os="d">If you want to run the testsuite, you need to change
50 a hardcoded reference to the <command>test</command> program:</para>
51
52 <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
53
54 <para os="f">To test the results, issue:
55 <userinput>make test</userinput>.</para>
56
57 <para os="g">Install the package:</para>
58
59<screen os="h"><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/collect \
60 extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator \
61 extras/scsi_id extras/usb_id extras/volume_id" DESTDIR=/ udevdir=/dev install</userinput></screen>
62
63 <variablelist os="i">
64 <title>The meaning of the make parameter:</title>
65
66 <varlistentry>
67 <term><parameter>DESTDIR=/</parameter></term>
68 <listitem>
69 <para>This prevents the Udev build process from killing any
70 <command>udevd</command> processes that may be running on the
71 system.</para>
72 </listitem>
73 </varlistentry>
74
75 </variablelist>
76
77 <para os="j">Install documentation:</para>
78
79<screen os="k"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html \
80 /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
81
82 <para os="l">Create a directory for storing firmware that can be
83 loaded by <command>udev</command>:</para>
84
85<screen os="m"><userinput>install -dv /lib/firmware</userinput></screen>
86
87 </sect2>
88
89 <sect2 id="contents-udev" role="content">
90 <title>Contents of Udev</title>
91
92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
94 <segtitle>Installed library</segtitle>
95 <segtitle>Installed directory</segtitle>
96
97 <seglistitem>
98 <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsettle,
99 udevtest, and udevtrigger</seg>
100 <seg>libvolume_id</seg>
101 <seg>/etc/udev</seg>
102 </seglistitem>
103 </segmentedlist>
104
105 <variablelist>
106 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
107 <?dbfo list-presentation="list"?>
108 <?dbhtml list-presentation="table"?>
109
110 <varlistentry id="udevcontrol">
111 <term><command>udevcontrol</command></term>
112 <listitem>
113 <para>Configures a number of options for the running
114 <command>udevd</command> daemon, such as the log level.</para>
115 <indexterm zone="ch-system-udev udevcontrol">
116 <primary sortas="b-udevcontrol">udevcontrol</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="udevd">
122 <term><command>udevd</command></term>
123 <listitem>
124 <para>A daemon that reorders hotplug events before submitting them to
125 <command>udev</command>,
126 thus avoiding various race conditions</para>
127 <indexterm zone="ch-system-udev udevd">
128 <primary sortas="b-udevd">udevd</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="udevinfo">
134 <term><command>udevinfo</command></term>
135 <listitem>
136 <para>Allows users to query the <command>udev</command> database for
137 information on any device currently present on the system; it also
138 provides a way to query any device in the <systemitem
139 class="filesystem">sysfs</systemitem> tree to help create udev
140 rules</para>
141 <indexterm zone="ch-system-udev udevinfo">
142 <primary sortas="b-udevinfo">udevinfo</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="udevmonitor">
148 <term><command>udevmonitor</command></term>
149 <listitem>
150 <para>Prints the event received from the kernel and the event which
151 <command>udev</command> sends out after rule processing</para>
152 <indexterm zone="ch-system-udev udevmonitor">
153 <primary sortas="b-udevmonitor">udevmonitor</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="udevsettle">
159 <term><command>udevsettle</command></term>
160 <listitem>
161 <para>Watches the Udev event queue and exits if all current uevents
162 have been handled</para>
163 <indexterm zone="ch-system-udev udevsettle">
164 <primary sortas="b-udevsettle">udevsettle</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="udevtest">
170 <term><command>udevtest</command></term>
171 <listitem>
172 <para>Simulates a <command>udev</command> run for the given device,
173 and prints out the name of the node the real <command>udev</command>
174 would have created or the name of the renamed network interface</para>
175 <indexterm zone="ch-system-udev udevtest">
176 <primary sortas="b-udevtest">udevtest</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="udevtrigger">
182 <term><command>udevtrigger</command></term>
183 <listitem>
184 <para>Walks the sysfs tree for devices that need to be added to the
185 system.</para>
186 <indexterm zone="ch-system-udev udevtrigger">
187 <primary sortas="b-udevtrigger">udevtrigger</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <!-- helpers start here -->
193 <varlistentry id="ata_id">
194 <term><command>ata_id</command></term>
195 <listitem>
196 <para>Provides Udev with a unique string and additional
197 information (uuid, label) for an ATA drive</para>
198 <indexterm zone="ch-system-udev ata_id">
199 <primary sortas="b-ata_id">ata_id</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="cdrom_id">
205 <term><command>cdrom_id</command></term>
206 <listitem>
207 <para>Print the capabilities of a CDROM or DVDROM drive.</para>
208 <indexterm zone="ch-system-udev cdrom_id">
209 <primary sortas="b-cdrom_id">cdrom_id</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="create_floppy_devices">
215 <term><command>create_floppy_devices</command></term>
216 <listitem>
217 <para>Creates all possible floppy devices based on the CMOS type</para>
218 <indexterm zone="ch-system-udev create_floppy_devices">
219 <primary sortas="b-create_floppy_devices">create_floppy_devices</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="dasd_id">
225 <term><command>dasd_id</command></term>
226 <listitem>
227 <para>Read the label from an s390 block device.</para>
228 <indexterm zone="ch-system-udev dasd_id">
229 <primary sortas="b-dasd_id">dasd_id</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="edd_id">
235 <term><command>edd_id</command></term>
236 <listitem>
237 <para>Identify x86 disk drives from Enhanced Disk Drive calls.</para>
238 <indexterm zone="ch-system-udev edd_id">
239 <primary sortas="b-edd_id">edd_id</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="firmware.sh">
245 <term><command>firmware.sh</command></term>
246 <listitem>
247 <para>Script to load firmware for a device</para>
248 <indexterm zone="ch-system-udev firmware.sh">
249 <primary sortas="b-firmware.sh">firmware.sh</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="path_id">
255 <term><command>path_id</command></term>
256 <listitem>
257 <para>Provide the shortest possible unique hardware path to a
258 device</para>
259 <indexterm zone="ch-system-udev path_id">
260 <primary sortas="b-path_id">path_id</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="scsi_id">
266 <term><command>scsi_id</command></term>
267 <listitem>
268 <para>Retrieve or generate a unique SCSI identifier.</para>
269 <indexterm zone="ch-system-udev scsi_id">
270 <primary sortas="b-scsi_id">scsi_id</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="usb_id">
276 <term><command>usb_id</command></term>
277 <listitem>
278 <para>Identify a USB block device.</para>
279 <indexterm zone="ch-system-udev usb_id">
280 <primary sortas="b-usb_id">usb_id</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="vol_id">
286 <term><command>vol_id</command></term>
287 <listitem>
288 <para>Probe filesystem type and read label and uuid.</para>
289 <indexterm zone="ch-system-udev vol_id">
290 <primary sortas="b-vol_id">vol_id</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="libvolume_id">
296 <term><filename class="libraryfile">libvolume_id</filename></term>
297 <listitem>
298 <para>Description needed.</para>
299 <indexterm zone="ch-system-udev libvolume_id">
300 <primary sortas="b-libvolume_id">libvolume_id</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="etc-udev">
306 <term><filename class="directory">/etc/udev</filename></term>
307 <listitem>
308 <para>Contains <command>udev</command> configuration files,
309 device permissions, and rules for device naming</para>
310 <indexterm zone="ch-system-udev etc-udev">
311 <primary sortas="e-/etc/udev">/etc/udev</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="lib-udev">
317 <term><filename class="directory">/lib/udev</filename></term>
318 <listitem>
319 <para>Contains <command>udev</command> helper programs
320 and static devices which get copied to /dev when booted.</para>
321 <indexterm zone="ch-system-udev lib-udev">
322 <primary sortas="e-/lib/udev">/lib/udev</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326 </variablelist>
327
328 </sect2>
329
330</sect1>
Note: See TracBrowser for help on using the repository browser.