source: BOOK/final-system/common/udev.xml@ 44426cf

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 44426cf was aa18ac0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated trunk book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 11.4 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/floppy extras/cdrom_id extras/firmware \
31 extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \
32 extras/edd_id extras/dasd_id extras/path_id"</userinput></screen>
33
34 <variablelist os="c">
35 <title>The meaning of the make parameter:</title>
36
37 <varlistentry>
38 <term><parameter>EXTRAS="extras/floppy extras/cdrom_id extras/firmware
39 extras/scsi_id extras/volume_id extras/ata_id extras/usb_id extras/edd_id
40 extras/dasd_id extras/path_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>
51 program:</para>
52
53 <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
54
55 <para os="f">To test the results, issue:
56 <userinput>make test</userinput>.</para>
57
58 <para os="g">Install the package:</para>
59
60<screen os="h"><userinput>make DESTDIR=/ \
61 EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
62 extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \
63 extras/edd_id extras/dasd_id extras/path_id" install</userinput></screen>
64
65 <variablelist os="i">
66 <title>The meaning of the make parameter:</title>
67
68 <varlistentry>
69 <term><parameter>DESTDIR=/</parameter></term>
70 <listitem>
71 <para>This prevents the Udev build process from killing any
72 <command>udevd</command> processes that may be running on the
73 system.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 <para os="i">Install a necessary helper script:</para>
80
81<screen os="j"><userinput>install -v extras/eventrecorder.sh /lib/udev</userinput></screen>
82
83 <para os="l">Install the documentation that explains how to create
84 Udev rules:</para>
85
86<screen os="m"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html \
87 /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
88
89 <para os="n">Create a directory for storing firmware that can be
90 loaded by <command>udev</command>:</para>
91
92<screen os="o"><userinput>install -dv /lib/firmware</userinput></screen>
93
94 <para os="p">Finally, remove the rules installed by Udev as we will be
95 installing custom Udev rules later:</para>
96
97<screen os="q"><userinput>rm -v /etc/udev/rules.d/*</userinput></screen>
98
99 </sect2>
100
101 <sect2 id="contents-udev" role="content">
102 <title>Contents of Udev</title>
103
104 <segmentedlist>
105 <segtitle>Installed programs</segtitle>
106 <segtitle>Installed directory</segtitle>
107
108 <seglistitem>
109 <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
110 udevtest, and udevtrigger</seg>
111 <seg>/etc/udev</seg>
112 </seglistitem>
113 </segmentedlist>
114
115 <variablelist>
116 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
117 <?dbfo list-presentation="list"?>
118 <?dbhtml list-presentation="table"?>
119
120 <varlistentry id="udevcontrol">
121 <term><command>udevcontrol</command></term>
122 <listitem>
123 <para>Configures a number of options for the running
124 <command>udevd</command> daemon, such as the log level.</para>
125 <indexterm zone="ch-system-udev udevcontrol">
126 <primary sortas="b-udevcontrol">udevcontrol</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="udevd">
132 <term><command>udevd</command></term>
133 <listitem>
134 <para>A daemon that reorders hotplug events before submitting them to
135 <command>udev</command>,
136 thus avoiding various race conditions</para>
137 <indexterm zone="ch-system-udev udevd">
138 <primary sortas="b-udevd">udevd</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="udevinfo">
144 <term><command>udevinfo</command></term>
145 <listitem>
146 <para>Allows users to query the <command>udev</command> database for
147 information on any device currently present on the system; it also
148 provides a way to query any device in the <systemitem
149 class="filesystem">sysfs</systemitem> tree to help create udev
150 rules</para>
151 <indexterm zone="ch-system-udev udevinfo">
152 <primary sortas="b-udevinfo">udevinfo</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="udevmonitor">
158 <term><command>udevmonitor</command></term>
159 <listitem>
160 <para>Prints the event received from the kernel and the event which
161 <command>udev</command> sends out after rule processing</para>
162 <indexterm zone="ch-system-udev udevmonitor">
163 <primary sortas="b-udevmonitor">udevmonitor</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="udevsettle">
169 <term><command>udevsettle</command></term>
170 <listitem>
171 <para>Watches the Udev event queue and exits if all current uevents
172 have been handled</para>
173 <indexterm zone="ch-system-udev udevsettle">
174 <primary sortas="b-udevsettle">udevsettle</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="udevtest">
180 <term><command>udevtest</command></term>
181 <listitem>
182 <para>Simulates a <command>udev</command> run for the given device,
183 and prints out the name of the node the real <command>udev</command>
184 would have created or the name of the renamed network interface</para>
185 <indexterm zone="ch-system-udev udevtest">
186 <primary sortas="b-udevtest">udevtest</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="udevtrigger">
192 <term><command>udevtrigger</command></term>
193 <listitem>
194 <para>Walks the sysfs tree for devices that need to be added to the
195 system.</para>
196 <indexterm zone="ch-system-udev udevtrigger">
197 <primary sortas="b-udevtrigger">udevtrigger</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <!-- helpers start here -->
203 <varlistentry id="ata_id">
204 <term><command>ata_id</command></term>
205 <listitem>
206 <para>Provides Udev with a unique string and additional
207 information (uuid, label) for an ATA drive</para>
208 <indexterm zone="ch-system-udev ata_id">
209 <primary sortas="b-ata_id">ata_id</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="cdrom_id">
215 <term><command>cdrom_id</command></term>
216 <listitem>
217 <para>Print the capabilities of a CDROM or DVDROM drive.</para>
218 <indexterm zone="ch-system-udev cdrom_id">
219 <primary sortas="b-cdrom_id">cdrom_id</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="create_floppy_devices">
225 <term><command>create_floppy_devices</command></term>
226 <listitem>
227 <para>Creates all possible floppy devices based on the CMOS type</para>
228 <indexterm zone="ch-system-udev create_floppy_devices">
229 <primary sortas="b-create_floppy_devices">create_floppy_devices</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="dasd_id">
235 <term><command>dasd_id</command></term>
236 <listitem>
237 <para>Read the label from an s390 block device.</para>
238 <indexterm zone="ch-system-udev dasd_id">
239 <primary sortas="b-dasd_id">dasd_id</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="edd_id">
245 <term><command>edd_id</command></term>
246 <listitem>
247 <para>Identify x86 disk drives from Enhanced Disk Drive calls.</para>
248 <indexterm zone="ch-system-udev edd_id">
249 <primary sortas="b-edd_id">edd_id</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="firmware.sh">
255 <term><command>firmware.sh</command></term>
256 <listitem>
257 <para>Script to load firmware for a device</para>
258 <indexterm zone="ch-system-udev firmware.sh">
259 <primary sortas="b-firmware.sh">firmware.sh</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="path_id">
265 <term><command>path_id</command></term>
266 <listitem>
267 <para>Provide the shortest possible unique hardware path to a
268 device</para>
269 <indexterm zone="ch-system-udev path_id">
270 <primary sortas="b-path_id">path_id</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="scsi_id">
276 <term><command>scsi_id</command></term>
277 <listitem>
278 <para>Retrieve or generate a unique SCSI identifier.</para>
279 <indexterm zone="ch-system-udev scsi_id">
280 <primary sortas="b-scsi_id">scsi_id</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="usb_id">
286 <term><command>usb_id</command></term>
287 <listitem>
288 <para>Identify a USB block device.</para>
289 <indexterm zone="ch-system-udev usb_id">
290 <primary sortas="b-usb_id">usb_id</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="vol_id">
296 <term><command>vol_id</command></term>
297 <listitem>
298 <para>Probe filesystem type and read label and uuid.</para>
299 <indexterm zone="ch-system-udev vol_id">
300 <primary sortas="b-vol_id">vol_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.