source: chapter06/udev.xml@ aa5a7fe

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 12.2 12.2-rc1 6.0 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since aa5a7fe was 811be305, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Fixed Index entries for Udev.

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

  • Property mode set to 100644
File size: 5.0 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</sect2>
22
23<sect2 role="installation">
24<title>Installation of Udev</title>
25
26<para>Begin by fixing an issue by which Udev ignores the contents of its
27permissions configuration file, and instead makes certain nodes (in particular
28<filename>/dev/null</filename>) usable only by root.</para>
29
30<screen><userinput>patch -Np1 -i ../udev-027-permissions-1.patch</userinput></screen>
31
32<para>Now compile Udev:</para>
33
34<screen><userinput>make udevdir=/dev</userinput></screen>
35
36<para>Install it:</para>
37
38<screen><userinput>make udevdir=/dev install</userinput></screen>
39
40<para>Udev's configuration is far from ideal by default, so we install our own
41configuration files here:</para>
42
43<screen><userinput>cp ../udev-config-1.permissions /etc/udev/permissions.d/00-lfs.permissions
44cp ../udev-config-1.rules /etc/udev/rules.d/00-lfs.rules</userinput></screen>
45
46</sect2>
47
48
49<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
50
51<segmentedlist>
52<segtitle>Installed programs</segtitle>
53<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, udevtest</seg></seglistitem>
54</segmentedlist>
55
56<variablelist><title>Short descriptions</title>
57
58<varlistentry id="udev">
59<term><command>udev</command></term>
60<listitem><indexterm zone="ch-system-udev udev"><primary
61sortas="b-udev">udev</primary></indexterm>
62<para>is used to create device nodes in <filename
63class="directory">/dev</filename> or to rename network interfaces (not in LFS)
64in response to hotplug events.</para>
65</listitem></varlistentry>
66
67<varlistentry id="udevd">
68<term><command>udevd</command></term>
69<listitem> <indexterm zone="ch-system-udev udevd"><primary
70sortas="b-udevd">udevd</primary></indexterm>
71<para>is a daemon that reorders hotplug events before submitting them to
72<command>udev</command>,
73thus avoiding various race conditions.</para>
74</listitem></varlistentry>
75
76<varlistentry id="udevsend">
77<term><command>udevsend</command></term>
78<listitem> <indexterm zone="ch-system-udev udevsend"><primary
79sortas="b-udevsend">udevsend</primary></indexterm>
80<para>is used to deliver hotplug events to <command>udevd</command>.</para>
81</listitem></varlistentry>
82
83<varlistentry id="udevstart">
84<term><command>udevstart</command></term>
85<listitem> <indexterm zone="ch-system-udev udevstart"><primary
86sortas="b-udevstart">udevstart</primary></indexterm>
87<para>is used to create device nodes in <filename
88class="directory">/dev</filename> that correspond to drivers compiled directly
89into the kernel. It performs that task by simulating hotplug events presumably
90dropped by the kernel before invocation of this program (e.g. because the root
91filesystem has not been mounted) and submitting such synthetic hotplug events
92to <command>udev</command>.</para>
93</listitem>
94</varlistentry>
95
96<varlistentry id="udevinfo">
97<term><command>udevinfo</command></term>
98<listitem> <indexterm zone="ch-system-udev udevinfo"><primary
99sortas="b-udevinfo">udevinfo</primary></indexterm>
100<para>allows users to query the <command>udev</command> database for
101information on any device currently present on the system. It also
102provides a way to query any device in the sysfs tree to help creating udev
103rules.</para>
104</listitem></varlistentry>
105
106<varlistentry id="udevtest">
107<term><command>udevtest</command></term>
108<listitem> <indexterm zone="ch-system-udev udevtest"><primary
109sortas="b-udevtest">udevtest</primary></indexterm>
110<para>simulates a <command>udev</command> run for the given device,
111and prints out the name of the node the real <command>udev</command> would
112have created, or (not in LFS) the name of the renamed network interface.</para>
113</listitem></varlistentry>
114
115<varlistentry id="etc-dev-d">
116<term><filename class="directory">/etc/dev.d</filename></term>
117<listitem> <indexterm zone="ch-system-udev etc-dev-d"><primary
118sortas="e-etc-dev-d">/etc/dev.d</primary></indexterm>
119<para>directory is supposed to contain user-written handlers for device
120creation hotplug events.</para>
121</listitem></varlistentry>
122
123<varlistentry id="etc-udev">
124<term><filename class="directory">/etc/udev</filename></term>
125<listitem> <indexterm zone="ch-system-udev etc-udev"><primary
126sortas="e-etc-udev">/etc/udev</primary></indexterm>
127<para>directory contains <command>udev</command> configuation files,
128device permissions and rules for device naming.</para>
129</listitem></varlistentry>
130</variablelist>
131</sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.