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</para>
|
---|
29 |
|
---|
30 | <note os="cc">
|
---|
31 | <para>The <command>make clean</command> command is required to clean up
|
---|
32 | the source tree, otherwise the code built for testing will be installed,
|
---|
33 | and the test version of <command>modprobe</command> does not function
|
---|
34 | outside the test environment.</para>
|
---|
35 | </note>
|
---|
36 |
|
---|
37 | <screen os="d"><userinput>./configure &&
|
---|
38 | make check &&
|
---|
39 | make clean</userinput></screen>
|
---|
40 |
|
---|
41 | <para os="e">Prepare Module-Init-Tools for compilation:</para>
|
---|
42 |
|
---|
43 | <screen os="f"><userinput>./configure --prefix=/usr \
|
---|
44 | --bindir=/bin --sbindir=/sbin \
|
---|
45 | --enable-zlib-dynamic</userinput></screen>
|
---|
46 |
|
---|
47 | <variablelist os="g">
|
---|
48 | <title>The meaning of the configure option:</title>
|
---|
49 |
|
---|
50 | <varlistentry>
|
---|
51 | <term><parameter>--enable-zlib-dynamic</parameter></term>
|
---|
52 | <listitem>
|
---|
53 | <para>This allows the Module-Init-Tools package to handle compressed
|
---|
54 | kernel modules.</para>
|
---|
55 | </listitem>
|
---|
56 | </varlistentry>
|
---|
57 |
|
---|
58 | </variablelist>
|
---|
59 |
|
---|
60 | <para os="h">Compile the package:</para>
|
---|
61 |
|
---|
62 | <screen os="i"><userinput>make DOCBOOKTOMAN=""</userinput></screen>
|
---|
63 |
|
---|
64 | <para os="j">Install the package:</para>
|
---|
65 |
|
---|
66 | <screen os="k"><userinput>make INSTALL=install install</userinput></screen>
|
---|
67 |
|
---|
68 | <variablelist os="l">
|
---|
69 | <title>The meaning of the make install parameter:</title>
|
---|
70 | <varlistentry>
|
---|
71 | <term><parameter>INSTALL=install</parameter></term>
|
---|
72 | <listitem>
|
---|
73 | <para>Normally, <command>make install</command> will not install the binaries if they
|
---|
74 | already exist. This option overrides that behavior by calling
|
---|
75 | <command>install</command> instead of using the default wrapper
|
---|
76 | script.</para>
|
---|
77 | </listitem>
|
---|
78 | </varlistentry>
|
---|
79 | </variablelist>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 id="contents-module-init-tools" role="content">
|
---|
84 | <title>Contents of Module-Init-Tools</title>
|
---|
85 |
|
---|
86 | <segmentedlist>
|
---|
87 | <segtitle>Installed programs</segtitle>
|
---|
88 |
|
---|
89 | <seglistitem>
|
---|
90 | <seg>depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and
|
---|
91 | rmmod</seg>
|
---|
92 | </seglistitem>
|
---|
93 | </segmentedlist>
|
---|
94 |
|
---|
95 | <variablelist>
|
---|
96 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
97 | <?dbfo list-presentation="list"?>
|
---|
98 | <?dbhtml list-presentation="table"?>
|
---|
99 |
|
---|
100 | <varlistentry id="depmod">
|
---|
101 | <term><command>depmod</command></term>
|
---|
102 | <listitem>
|
---|
103 | <para>Creates a dependency file based on the symbols it finds in
|
---|
104 | the existing set of modules; this dependency file is used by
|
---|
105 | <command>modprobe</command> to automatically load the required
|
---|
106 | modules</para>
|
---|
107 | <indexterm zone="ch-system-module-init-tools depmod">
|
---|
108 | <primary sortas="b-depmod">depmod</primary>
|
---|
109 | </indexterm>
|
---|
110 | </listitem>
|
---|
111 | </varlistentry>
|
---|
112 |
|
---|
113 | <varlistentry id="insmod">
|
---|
114 | <term><command>insmod</command></term>
|
---|
115 | <listitem>
|
---|
116 | <para>Installs a loadable module in the running kernel</para>
|
---|
117 | <indexterm zone="ch-system-module-init-tools insmod">
|
---|
118 | <primary sortas="b-insmod">insmod</primary>
|
---|
119 | </indexterm>
|
---|
120 | </listitem>
|
---|
121 | </varlistentry>
|
---|
122 |
|
---|
123 | <varlistentry id="insmod.static">
|
---|
124 | <term><command>insmod.static</command></term>
|
---|
125 | <listitem>
|
---|
126 | <para>A statically compiled version of <command>insmod</command></para>
|
---|
127 | <indexterm zone="ch-system-module-init-tools insmod.static">
|
---|
128 | <primary sortas="b-insmod.static">insmod.static</primary>
|
---|
129 | </indexterm>
|
---|
130 | </listitem>
|
---|
131 | </varlistentry>
|
---|
132 |
|
---|
133 | <varlistentry id="lsmod">
|
---|
134 | <term><command>lsmod</command></term>
|
---|
135 | <listitem>
|
---|
136 | <para>Lists currently loaded modules</para>
|
---|
137 | <indexterm zone="ch-system-module-init-tools lsmod">
|
---|
138 | <primary sortas="b-lsmod">lsmod</primary>
|
---|
139 | </indexterm>
|
---|
140 | </listitem>
|
---|
141 | </varlistentry>
|
---|
142 |
|
---|
143 | <varlistentry id="modinfo">
|
---|
144 | <term><command>modinfo</command></term>
|
---|
145 | <listitem>
|
---|
146 | <para>Examines an object file associated with a kernel module and
|
---|
147 | displays any information that it can glean</para>
|
---|
148 | <indexterm zone="ch-system-module-init-tools modinfo">
|
---|
149 | <primary sortas="b-modinfo">modinfo</primary>
|
---|
150 | </indexterm>
|
---|
151 | </listitem>
|
---|
152 | </varlistentry>
|
---|
153 |
|
---|
154 | <varlistentry id="modprobe">
|
---|
155 | <term><command>modprobe</command></term>
|
---|
156 | <listitem>
|
---|
157 | <para>Uses a dependency file, created by <command>depmod</command>,
|
---|
158 | to automatically load relevant modules</para>
|
---|
159 | <indexterm zone="ch-system-module-init-tools modprobe">
|
---|
160 | <primary sortas="b-modprobe">modprobe</primary>
|
---|
161 | </indexterm>
|
---|
162 | </listitem>
|
---|
163 | </varlistentry>
|
---|
164 |
|
---|
165 | <varlistentry id="rmmod">
|
---|
166 | <term><command>rmmod</command></term>
|
---|
167 | <listitem>
|
---|
168 | <para>Unloads modules from the running kernel</para>
|
---|
169 | <indexterm zone="ch-system-module-init-tools rmmod">
|
---|
170 | <primary sortas="b-rmmod">rmmod</primary>
|
---|
171 | </indexterm>
|
---|
172 | </listitem>
|
---|
173 | </varlistentry>
|
---|
174 |
|
---|
175 | </variablelist>
|
---|
176 |
|
---|
177 | </sect2>
|
---|
178 |
|
---|
179 | </sect1>
|
---|