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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c0dc782 was 190e0ab, checked in by Jim Gifford <clfs@…>, 16 years ago

Readded Missing ManPages Patch to Module-Init-Tools

  • Property mode set to 100644
File size: 6.6 KB
RevLine 
[7f2a588]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[190e0ab]28 <para os="p1">The following patch contains the man-pages for Module Init Tools:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&module-init-tools-manpages-patch;</userinput></screen>
31
[c4534a5]32 <para os="c">Issue the following commands to perform the tests</para>
33
34 <note os="cc">
[af4f700]35 <para>The <command>make clean</command> command is required to clean up
36 the source tree, otherwise the code built for testing will be installed,
37 and the test version of <command>modprobe</command> does not function
38 outside the test environment.</para>
[c4534a5]39 </note>
[86b01c92]40
41<screen os="d"><userinput>./configure &amp;&amp;
[0f9d1e9]42make check &amp;&amp;
[c4534a5]43make clean</userinput></screen>
[c999585]44
[e0e40d3]45 <para os="e">Prepare Module-Init-Tools for compilation:</para>
[3f8be484]46
[f4cc1c2]47<screen os="f"><userinput>./configure --prefix=/usr \
[1e58202]48 --bindir=/bin --sbindir=/sbin \
49 --enable-zlib</userinput></screen>
[3f8be484]50
[e0e40d3]51 <variablelist os="g">
[da0b4a3]52 <title>The meaning of the configure option:</title>
[3f8be484]53
54 <varlistentry>
55 <term><parameter>--enable-zlib</parameter></term>
56 <listitem>
57 <para>This allows the Module-Init-Tools package to handle compressed
58 kernel modules.</para>
59 </listitem>
60 </varlistentry>
61
62 </variablelist>
63
[e0e40d3]64 <para os="h">Compile the package:</para>
[3f8be484]65
[b3dfbf1]66<screen os="i"><userinput>make DOCBOOKTOMAN=""</userinput></screen>
[c6c6c35]67
[e0e40d3]68 <para os="j">Install the package:</para>
[3f8be484]69
[e69b20a]70<screen os="k"><userinput>make INSTALL=install install</userinput></screen>
71
[694e331]72 <variablelist os="l">
[c6c6c35]73 <title>The meaning of the make install parameter:</title>
[e69b20a]74 <varlistentry>
75 <term><parameter>INSTALL=install</parameter></term>
76 <listitem>
[040521bc]77 <para>Normally, <command>make install</command> will not install the binaries if they
[e69b20a]78 already exist. This option overrides that behavior by calling
79 <command>install</command> instead of using the default wrapper
80 script.</para>
81 </listitem>
82 </varlistentry>
83 </variablelist>
84
[3f8be484]85 </sect2>
86
87 <sect2 id="contents-module-init-tools" role="content">
88 <title>Contents of Module-Init-Tools</title>
89
90 <segmentedlist>
91 <segtitle>Installed programs</segtitle>
92
93 <seglistitem>
[a68b59e]94 <seg>depmod, generate-modprobe.conf, insmod, insmod.static,
95 lsmod (link to insmod), modinfo, modprobe (link to insmod), and
96 rmmod (link to insmod)</seg>
[3f8be484]97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="depmod">
106 <term><command>depmod</command></term>
107 <listitem>
108 <para>Creates a dependency file based on the symbols it finds in
109 the existing set of modules; this dependency file is used by
110 <command>modprobe</command> to automatically load the required
111 modules</para>
112 <indexterm zone="ch-system-module-init-tools depmod">
113 <primary sortas="b-depmod">depmod</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
[a68b59e]118 <varlistentry id="generate-modprobe.conf">
119 <term><command>generate-modprobe.conf</command></term>
120 <listitem>
121 <para>Creates a modprobe.conf file from an existing 2.2 or 2.4
122 module setup</para>
123 <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
124 <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
[3f8be484]129 <varlistentry id="insmod">
130 <term><command>insmod</command></term>
131 <listitem>
132 <para>Installs a loadable module in the running kernel</para>
133 <indexterm zone="ch-system-module-init-tools insmod">
134 <primary sortas="b-insmod">insmod</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="insmod.static">
140 <term><command>insmod.static</command></term>
141 <listitem>
142 <para>A statically compiled version of <command>insmod</command></para>
143 <indexterm zone="ch-system-module-init-tools insmod.static">
144 <primary sortas="b-insmod.static">insmod.static</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="lsmod">
150 <term><command>lsmod</command></term>
151 <listitem>
152 <para>Lists currently loaded modules</para>
153 <indexterm zone="ch-system-module-init-tools lsmod">
154 <primary sortas="b-lsmod">lsmod</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="modinfo">
160 <term><command>modinfo</command></term>
161 <listitem>
162 <para>Examines an object file associated with a kernel module and
163 displays any information that it can glean</para>
164 <indexterm zone="ch-system-module-init-tools modinfo">
165 <primary sortas="b-modinfo">modinfo</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="modprobe">
171 <term><command>modprobe</command></term>
172 <listitem>
173 <para>Uses a dependency file, created by <command>depmod</command>,
174 to automatically load relevant modules</para>
175 <indexterm zone="ch-system-module-init-tools modprobe">
176 <primary sortas="b-modprobe">modprobe</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="rmmod">
182 <term><command>rmmod</command></term>
183 <listitem>
184 <para>Unloads modules from the running kernel</para>
185 <indexterm zone="ch-system-module-init-tools rmmod">
186 <primary sortas="b-rmmod">rmmod</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 </variablelist>
192
193 </sect2>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.