source: chapter06/module-init-tools.xml@ 340005d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 340005d was 340005d, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

More spelling

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7702 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&module-init-tools-ch6-sbu;</seg>
29 <seg>&module-init-tools-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Module-Init-Tools</title>
37
38 <para>First correct a potential problem when modules are specified
39 using regular expressions:</para>
40
41<screen><userinput>patch -Np1 -i ../module-init-tools-&module-init-tools-version;-modprobe-1.patch</userinput></screen>
42
43 <para>Issue the following commands to perform the tests (note that the
44 <command>make distclean</command> command is required to clean up the source
45 tree, as the source gets recompiled as part of the testing process):</para>
46
47<screen><userinput>./configure &amp;&amp;
48make check &amp;&amp;
49make distclean</userinput></screen>
50
51 <para>Prepare Module-Init-Tools for compilation:</para>
52
53<screen><userinput>./configure --prefix=/ --enable-zlib</userinput></screen>
54
55 <para>Compile the package:</para>
56
57<screen><userinput>make</userinput></screen>
58
59 <para>Install the package:</para>
60
61<screen><userinput>make INSTALL=install install</userinput></screen>
62
63 <variablelist>
64 <title>The meaning of the make parameter:</title>
65 <varlistentry>
66 <term><parameter>INSTALL=install</parameter></term>
67 <listitem>
68 <para>Normally, <command>make install</command> will not install the
69 binaries if they already exist. This option overrides that behavior by
70 calling <command>install</command> instead of using the default
71 wrapper script.</para>
72 </listitem>
73 </varlistentry>
74 </variablelist>
75
76 </sect2>
77
78 <sect2 id="contents-module-init-tools" role="content">
79 <title>Contents of Module-Init-Tools</title>
80
81 <segmentedlist>
82 <segtitle>Installed programs</segtitle>
83
84 <seglistitem>
85 <seg>depmod, generate-modprobe.conf, insmod, insmod.static, lsmod,
86 modinfo, modprobe, and rmmod</seg>
87 </seglistitem>
88 </segmentedlist>
89
90 <variablelist>
91 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
92 <?dbfo list-presentation="list"?>
93 <?dbhtml list-presentation="table"?>
94
95 <varlistentry id="depmod">
96 <term><command>depmod</command></term>
97 <listitem>
98 <para>Creates a dependency file based on the symbols it finds in the
99 existing set of modules; this dependency file is used by
100 <command>modprobe</command> to automatically load the required
101 modules</para>
102 <indexterm zone="ch-system-module-init-tools depmod">
103 <primary sortas="b-depmod">depmod</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="generate-modprobe.conf">
109 <term><command>generate-modprobe.conf</command></term>
110 <listitem>
111 <para>Creates a modprobe.conf file from an existing 2.2 or 2.4 module
112 setup</para>
113 <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
114 <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="insmod">
120 <term><command>insmod</command></term>
121 <listitem>
122 <para>Installs a loadable module in the running kernel</para>
123 <indexterm zone="ch-system-module-init-tools insmod">
124 <primary sortas="b-insmod">insmod</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry id="insmod.static">
130 <term><command>insmod.static</command></term>
131 <listitem>
132 <para>A statically compiled version of <command>insmod</command></para>
133 <indexterm zone="ch-system-module-init-tools insmod.static">
134 <primary sortas="b-insmod.static">insmod.static</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="lsmod">
140 <term><command>lsmod</command></term>
141 <listitem>
142 <para>Lists currently loaded modules</para>
143 <indexterm zone="ch-system-module-init-tools lsmod">
144 <primary sortas="b-lsmod">lsmod</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="modinfo">
150 <term><command>modinfo</command></term>
151 <listitem>
152 <para>Examines an object file associated with a kernel module and
153 displays any information that it can glean</para>
154 <indexterm zone="ch-system-module-init-tools modinfo">
155 <primary sortas="b-modinfo">modinfo</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="modprobe">
161 <term><command>modprobe</command></term>
162 <listitem>
163 <para>Uses a dependency file, created by
164 <command>depmod</command>, to automatically load relevant modules</para>
165 <indexterm zone="ch-system-module-init-tools modprobe">
166 <primary sortas="b-modprobe">modprobe</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="rmmod">
172 <term><command>rmmod</command></term>
173 <listitem>
174 <para>Unloads modules from the running kernel</para>
175 <indexterm zone="ch-system-module-init-tools rmmod">
176 <primary sortas="b-rmmod">rmmod</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 </variablelist>
182
183 </sect2>
184
185</sect1>
Note: See TracBrowser for help on using the repository browser.