source: chapter06/udev.xml@ ce508e3

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since ce508e3 was 8f97096, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Changed the Short Descriptions sections to table format for XHTML output.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4677 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.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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 and Make</seg></seglistitem>
24</segmentedlist>
25
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Udev</title>
30
31<para>Compile the package:</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>This package does not come with a test suite.</para>
44
45<para>Install the package:</para>
46
47<screen><userinput>make udevdir=/dev install</userinput></screen>
48
49<para>Udev's configuration is far from ideal by default, so install
50the configuration files here:</para>
51
52<screen><userinput>cp ../udev-config-2.permissions \
53 /etc/udev/permissions.d/25-lfs.permissions
54cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
55
56<!-- Edit Me -->
57<para>Run the <command>udevstart</command> program to create our full
58compliment of device nodes.</para>
59
60<screen><userinput>/sbin/udevstart</userinput></screen>
61
62</sect2>
63
64<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
65
66<segmentedlist>
67<segtitle>Installed programs</segtitle>
68<segtitle>Installed directory</segtitle>
69<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, and udevtest</seg>
70<seg>/etc/udev</seg></seglistitem>
71</segmentedlist>
72
73<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
74<?dbfo list-presentation="list"?>
75<?dbhtml list-presentation="table"?>
76
77<varlistentry id="udev">
78<term><command>udev</command></term>
79<listitem>
80<para>Creates device nodes in <filename
81class="directory">/dev</filename> or renames network interfaces (not
82in LFS) in response to hotplug events</para>
83<indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
84</listitem></varlistentry>
85
86<varlistentry id="udevd">
87<term><command>udevd</command></term>
88<listitem>
89<para>A daemon that reorders hotplug events before submitting them to
90<command>udev</command>,
91thus avoiding various race conditions</para>
92<indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
93</listitem></varlistentry>
94
95<varlistentry id="udevsend">
96<term><command>udevsend</command></term>
97<listitem>
98<para>Delivers hotplug events to <command>udevd</command></para>
99<indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
100</listitem></varlistentry>
101
102<varlistentry id="udevstart">
103<term><command>udevstart</command></term>
104<listitem>
105<para>Creates device nodes in <filename
106class="directory">/dev</filename> that correspond to drivers compiled directly
107into the kernel; it performs that task by simulating hotplug events presumably
108dropped by the kernel before invocation of this program (e.g., because the root
109filesystem has not been mounted) and submitting such synthetic hotplug events
110to <command>udev</command></para>
111<indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
112</listitem>
113</varlistentry>
114
115<varlistentry id="udevinfo">
116<term><command>udevinfo</command></term>
117<listitem>
118<para>Allows users to query the <command>udev</command> database for
119information on any device currently present on the system; it also
120provides a way to query any device in the <systemitem
121class="filesystem">sysfs</systemitem> tree to help create udev
122rules</para>
123<indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
124</listitem></varlistentry>
125
126<varlistentry id="udevtest">
127<term><command>udevtest</command></term>
128<listitem>
129<para>Simulates a <command>udev</command> run for the given device,
130and prints out the name of the node the real <command>udev</command> would
131have created or (not in LFS) the name of the renamed network interface</para>
132<indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
133</listitem></varlistentry>
134
135<varlistentry id="etc-udev">
136<term><filename class="directory">/etc/udev</filename></term>
137<listitem>
138<para>Contains <command>udev</command> configuation files,
139device permissions, and rules for device naming</para>
140<indexterm zone="ch-system-udev etc-udev"><primary sortas="e-etc-udev">/etc/udev</primary></indexterm>
141</listitem></varlistentry>
142</variablelist>
143</sect2>
144
145</sect1>
146
Note: See TracBrowser for help on using the repository browser.