source: BOOK/final-system/common/module-init-tools.xml@ 8bff584

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8bff584 was 8bff584, checked in by Ken Moffat <zarniwhoop@…>, 17 years ago

Add patch for man pages to module-init-tools.

  • Property mode set to 100644
File size: 7.2 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-module-init-tools" role="wrap">
9 <?dbhtml filename="module-init-tools.html"?>
10
11 <title>Module-Init-Tools-&module-init-tools-version;</title>
12
13 <indexterm zone="ch-system-module-init-tools">
14 <primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Module-Init-Tools package contains programs for handling kernel
21 modules in Linux kernels greater than or equal to version 2.5.47.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Module-Init-Tools</title>
27
28 <para os="a1">The tarball only contains sgml source for the manual pages. The
29 following patch contains the result of processing this through
30 <command>docbook2man</command> which we do not build as part of a basic clfs
31 install :</para>
32
33<screen os="a2"><userinput>patch -Np1 -i ../&module-init-tools-manpages-patch;</userinput></screen>
34
35 <para os="c">Issue the following commands to perform the tests
36 (note that the <command>make clean</command>
37 command is required to clean up the source tree, otherwise the code
38 built for testing will be installed, and the test version of
39 <command>modprobe</command> does not function outside the test
40 environment).</para>
41
42<screen os="d"><userinput>./configure &amp;&amp;
43make DOCBOOKTOMAN=true check &amp;&amp;
44make clean &amp;&amp;</userinput></screen>
45
46 <para os="e">Prepare Module-Init-Tools for compilation:</para>
47
48<screen os="f"><userinput>./configure --prefix=/ --enable-zlib</userinput></screen>
49
50 <variablelist os="g">
51 <title>The meaning of the configure options:</title>
52
53 <varlistentry>
54 <term><parameter>--enable-zlib</parameter></term>
55 <listitem>
56 <para>This allows the Module-Init-Tools package to handle compressed
57 kernel modules.</para>
58 </listitem>
59 </varlistentry>
60
61 </variablelist>
62
63 <para os="h">Compile the package:</para>
64
65<screen os="i"><userinput>make DOCBOOKTOMAN=true</userinput></screen>
66
67 <variablelist os="i2">
68 <title>The meaning of the make parameter:</title>
69 <varlistentry>
70 <term><parameter>DOCBOOKTOMAN=true</parameter></term>
71 <listitem>
72 <para>The <literal>DOCBOOKTOMAN</literal> variable specifies the
73 program which is executed to convert the sgml source to man pages.
74 We do not have either of the alternatives, so we create empty pages
75 instead.</para>
76 </listitem>
77 </varlistentry>
78 </variablelist>
79
80 <para os="j">Install the package:</para>
81
82<screen os="k"><userinput>make INSTALL=install install</userinput></screen>
83
84 <variablelist os="l">
85 <title>The meaning of the make install parameter:</title>
86 <varlistentry>
87 <term><parameter>INSTALL=install</parameter></term>
88 <listitem>
89 <para>Normally, <command>make install</command> will not install the binaries if they
90 already exist. This option overrides that behavior by calling
91 <command>install</command> instead of using the default wrapper
92 script.</para>
93 </listitem>
94 </varlistentry>
95 </variablelist>
96
97
98
99 </sect2>
100
101 <sect2 id="contents-module-init-tools" role="content">
102 <title>Contents of Module-Init-Tools</title>
103
104 <segmentedlist>
105 <segtitle>Installed programs</segtitle>
106
107 <seglistitem>
108 <seg>depmod, generate-modprobe.conf, insmod, insmod.static,
109 lsmod (link to insmod), modinfo, modprobe (link to insmod), and
110 rmmod (link to insmod)</seg>
111 </seglistitem>
112 </segmentedlist>
113
114 <variablelist>
115 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
116 <?dbfo list-presentation="list"?>
117 <?dbhtml list-presentation="table"?>
118
119 <varlistentry id="depmod">
120 <term><command>depmod</command></term>
121 <listitem>
122 <para>Creates a dependency file based on the symbols it finds in
123 the existing set of modules; this dependency file is used by
124 <command>modprobe</command> to automatically load the required
125 modules</para>
126 <indexterm zone="ch-system-module-init-tools depmod">
127 <primary sortas="b-depmod">depmod</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="generate-modprobe.conf">
133 <term><command>generate-modprobe.conf</command></term>
134 <listitem>
135 <para>Creates a modprobe.conf file from an existing 2.2 or 2.4
136 module setup</para>
137 <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
138 <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="insmod">
144 <term><command>insmod</command></term>
145 <listitem>
146 <para>Installs a loadable module in the running kernel</para>
147 <indexterm zone="ch-system-module-init-tools insmod">
148 <primary sortas="b-insmod">insmod</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="insmod.static">
154 <term><command>insmod.static</command></term>
155 <listitem>
156 <para>A statically compiled version of <command>insmod</command></para>
157 <indexterm zone="ch-system-module-init-tools insmod.static">
158 <primary sortas="b-insmod.static">insmod.static</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="lsmod">
164 <term><command>lsmod</command></term>
165 <listitem>
166 <para>Lists currently loaded modules</para>
167 <indexterm zone="ch-system-module-init-tools lsmod">
168 <primary sortas="b-lsmod">lsmod</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="modinfo">
174 <term><command>modinfo</command></term>
175 <listitem>
176 <para>Examines an object file associated with a kernel module and
177 displays any information that it can glean</para>
178 <indexterm zone="ch-system-module-init-tools modinfo">
179 <primary sortas="b-modinfo">modinfo</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="modprobe">
185 <term><command>modprobe</command></term>
186 <listitem>
187 <para>Uses a dependency file, created by <command>depmod</command>,
188 to automatically load relevant modules</para>
189 <indexterm zone="ch-system-module-init-tools modprobe">
190 <primary sortas="b-modprobe">modprobe</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="rmmod">
196 <term><command>rmmod</command></term>
197 <listitem>
198 <para>Unloads modules from the running kernel</para>
199 <indexterm zone="ch-system-module-init-tools rmmod">
200 <primary sortas="b-rmmod">rmmod</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 </variablelist>
206
207 </sect2>
208
209</sect1>
Note: See TracBrowser for help on using the repository browser.