source: chapter06/udev.xml@ 6b85f8a

6.0
Last change on this file since 6b85f8a was 3ed279f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags changes in the contents sections to make a better print output.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4009 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-udev" role="wrap">
7<title>Udev-&udev-version;</title>
8<?dbhtml filename="udev.html"?>
9
10<indexterm zone="ch-system-udev"><primary sortas="a-Udev">Udev</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Udev package contains programs for dynamic creation of device nodes.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>Udev installation depends on</segtitle>
23<seglistitem><seg>Coreutils, Make</seg></seglistitem>
24</segmentedlist>
25
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Udev</title>
30
31<para>Compile Udev:</para>
32
33<screen><userinput>make udevdir=/dev</userinput></screen>
34
35<variablelist>
36<varlistentry>
37<term><parameter>udevdir=/dev</parameter></term>
38<listitem><para>This tells <command>udev</command> in which directory
39devices nodes are to be created.</para></listitem>
40</varlistentry>
41</variablelist>
42
43<para>Install the package:</para>
44
45<screen><userinput>make udevdir=/dev install</userinput></screen>
46
47<para>Udev's configuration is far from ideal by default, so we install our own
48configuration files here:</para>
49
50<screen><userinput>cp ../udev-config-2.permissions /etc/udev/permissions.d/00-lfs.permissions
51cp ../udev-config-1.rules /etc/udev/rules.d/00-lfs.rules</userinput></screen>
52
53</sect2>
54
55<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
56
57<segmentedlist>
58<segtitle>Installed programs</segtitle>
59<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, udevtest</seg></seglistitem>
60</segmentedlist>
61
62<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
63<?dbfo list-presentation="list"?>
64
65<varlistentry id="udev">
66<term><command>udev</command></term>
67<listitem>
68<para>is used to create device nodes in <filename
69class="directory">/dev</filename> or to rename network interfaces (not
70in LFS) in response to hotplug events.</para>
71<indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
72</listitem></varlistentry>
73
74<varlistentry id="udevd">
75<term><command>udevd</command></term>
76<listitem>
77<para>is a daemon that reorders hotplug events before submitting them to
78<command>udev</command>,
79thus avoiding various race conditions.</para>
80<indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
81</listitem></varlistentry>
82
83<varlistentry id="udevsend">
84<term><command>udevsend</command></term>
85<listitem>
86<para>is used to deliver hotplug events to <command>udevd</command>.</para>
87<indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
88</listitem></varlistentry>
89
90<varlistentry id="udevstart">
91<term><command>udevstart</command></term>
92<listitem>
93<para>is used to create device nodes in <filename
94class="directory">/dev</filename> that correspond to drivers compiled directly
95into the kernel. It performs that task by simulating hotplug events presumably
96dropped by the kernel before invocation of this program (e.g. because the root
97filesystem has not been mounted) and submitting such synthetic hotplug events
98to <command>udev</command>.</para>
99<indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
100</listitem>
101</varlistentry>
102
103<varlistentry id="udevinfo">
104<term><command>udevinfo</command></term>
105<listitem>
106<para>allows users to query the <command>udev</command> database for
107information on any device currently present on the system. It also
108provides a way to query any device in the <systemitem
109class="filesystem">sysfs</systemitem> tree to help creating udev
110rules.</para>
111<indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
112</listitem></varlistentry>
113
114<varlistentry id="udevtest">
115<term><command>udevtest</command></term>
116<listitem>
117<para>simulates a <command>udev</command> run for the given device,
118and prints out the name of the node the real <command>udev</command> would
119have created, or (not in LFS) the name of the renamed network interface.</para>
120<indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
121</listitem></varlistentry>
122
123<varlistentry id="etc-dev-d">
124<term><filename class="directory">/etc/dev.d</filename></term>
125<listitem>
126<para>directory contains user-written handlers for device
127creation hotplug events.</para>
128<indexterm zone="ch-system-udev etc-dev-d"><primary sortas="e-etc-dev-d">/etc/dev.d</primary></indexterm>
129</listitem></varlistentry>
130
131<varlistentry id="etc-udev">
132<term><filename class="directory">/etc/udev</filename></term>
133<listitem>
134<para>directory contains <command>udev</command> configuation files,
135device permissions and rules for device naming.</para>
136<indexterm zone="ch-system-udev etc-udev"><primary sortas="e-etc-udev">/etc/udev</primary></indexterm>
137</listitem></varlistentry>
138</variablelist>
139</sect2>
140
141</sect1>
142
Note: See TracBrowser for help on using the repository browser.