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

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

Remove the instruction to delete the generated empty man pages, ready for when we have useful pre-generated pages.

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