source: chapter06/module-init-tools.xml@ a0bf931

6.1 6.1.1
Last change on this file since a0bf931 was a0bf931, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Fixed the list of installed programs for module-init-tools, and tag fix. Ported from trunk r649 and r6050.

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

  • Property mode set to 100644
File size: 4.5 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-module-init-tools" role="wrap">
7<title>Module-Init-Tools-&module-init-tools-version;</title>
8<?dbhtml filename="module-init-tools.html"?>
9
10<indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Module-Init-Tools package contains programs for handling kernel
14modules in Linux kernels greater than or equal to version 2.5.47.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>4.9 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Bison,
25Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Module-Init-Tools</title>
31
32<para>Module-Init-Tools attempts to rewrite its
33<filename>modprobe.conf</filename> man page during the build process. This is
34unnecessary and also relies on <command>docbook2man</command> &mdash; which is not
35installed in LFS. Run the following command to avoid this:</para>
36
37<screen><userinput>touch modprobe.conf.5</userinput></screen>
38
39<para>Prepare Module-Init-Tools for compilation:</para>
40
41<screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
42
43<para>Compile the package:</para>
44
45<screen><userinput>make</userinput></screen>
46
47<para>To test the results, issue:
48<userinput>make check</userinput>.</para>
49
50<para>Install the package:</para>
51
52<screen><userinput>make install</userinput></screen>
53
54</sect2>
55
56
57<sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
58
59<segmentedlist>
60<segtitle>Installed programs</segtitle>
61<seglistitem><seg>depmod, insmod,
62insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
63insmod), and rmmod (link to insmod)</seg></seglistitem>
64</segmentedlist>
65
66<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
67<?dbfo list-presentation="list"?>
68<?dbhtml list-presentation="table"?>
69
70<varlistentry id="depmod">
71<term><command>depmod</command></term>
72<listitem>
73<para>Creates a dependency file based on the symbols it finds in the
74existing set of modules; this dependency file is used by <command>modprobe</command> to
75automatically load the required modules</para>
76<indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
77</listitem>
78</varlistentry>
79
80<varlistentry id="insmod">
81<term><command>insmod</command></term>
82<listitem>
83<para>Installs a loadable module in the running kernel</para>
84<indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
85</listitem>
86</varlistentry>
87
88<varlistentry id="insmod.static">
89<term><command>insmod.static</command></term>
90<listitem>
91<para>A static version of <command>insmod</command></para>
92<indexterm zone="ch-system-module-init-tools insmod.static"><primary
93sortas="b-insmod.static">insmod.static</primary></indexterm>
94</listitem>
95</varlistentry>
96
97<varlistentry id="lsmod">
98<term><command>lsmod</command></term>
99<listitem>
100<para>Lists currently loaded modules</para>
101<indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
102</listitem>
103</varlistentry>
104
105<varlistentry id="modinfo">
106<term><command>modinfo</command></term>
107<listitem>
108<para>Examines an object file associated with a kernel module and
109displays any information that it can glean</para>
110<indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
111</listitem>
112</varlistentry>
113
114<varlistentry id="modprobe">
115<term><command>modprobe</command></term>
116<listitem>
117<para>Uses a dependency file, created by
118<command>depmod</command>, to automatically load relevant modules</para>
119<indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
120</listitem>
121</varlistentry>
122
123<varlistentry id="rmmod">
124<term><command>rmmod</command></term>
125<listitem>
126<para>Unloads modules from the running kernel</para>
127<indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
128</listitem>
129</varlistentry>
130</variablelist>
131
132</sect2>
133
134</sect1>
135
Note: See TracBrowser for help on using the repository browser.