source: BOOK/final-system/common/module-init-tools.xml@ 67e51c0

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

Fix how we run. and clean up after, the testsuite for module-init-tools.

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