source: chapter06/kmod.xml@ 044384d

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 044384d was e2c4848, checked in by Krejzi <krejzi@…>, 10 years ago

Updates from LFS development.

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

  • Property mode set to 100644
File size: 6.7 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-kmod" role="wrap">
9 <?dbhtml filename="kmod.html"?>
10
11 <sect1info condition="script">
12 <productname>kmod</productname>
13 <productnumber>&kmod-version;</productnumber>
14 <address>&kmod-url;</address>
15 </sect1info>
16
17 <title>Kmod-&kmod-version;</title>
18
19 <indexterm zone="ch-system-kmod">
20 <primary sortas="a-Kmod">Kmod</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Kmod package contains libraries and utilities for loading kernel
27 modules</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&kmod-ch6-sbu;</seg>
35 <seg>&kmod-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Kmod</title>
43
44 <para>Prepare Kmod for compilation:</para>
45
46<screen><userinput remap="configure">./configure --prefix=/usr \
47 --bindir=/bin \
48 --sysconfdir=/etc \
49 --with-rootlibdir=/lib \
50 --disable-manpages \
51 --with-xz \
52 --with-zlib</userinput></screen>
53
54 <variablelist>
55 <title>The meaning of the configure options:</title>
56
57 <varlistentry>
58 <term><parameter>--with-xz, --with-zlib</parameter></term>
59 <listitem>
60 <para>These options enable Kmod to handle compressed kernel modules.</para>
61 </listitem>
62 </varlistentry>
63
64 <varlistentry>
65 <term><parameter>--disable-manpages</parameter></term>
66 <listitem>
67 <para>This option prevents the man pages from being built, as they
68 rely on libxslt, which isn't available in the chroot
69 environment.</para>
70 </listitem>
71 </varlistentry>
72
73 <varlistentry>
74 <term><parameter>--with-rootlibdir=/lib</parameter></term>
75 <listitem>
76 <para>This option ensures different library related files are placed
77 in the correct directories.</para>
78 </listitem>
79 </varlistentry>
80
81 </variablelist>
82
83 <para>Compile the package:</para>
84
85<screen><userinput remap="make">make</userinput></screen>
86
87 <para>To test the results, issue:</para>
88
89<screen><userinput remap="test">make check</userinput></screen>
90
91 <para>Install the package, create symlinks for compatibility with
92 Module-Init-Tools (the package that previously handled Linux kernel
93 modules), and manually install the man pages. Also make sure that all
94 libraries are in the correct directory: </para>
95
96<screen><userinput remap="install">make install
97
98for target in depmod insmod modinfo modprobe rmmod; do
99 ln -sv ../bin/kmod /sbin/$target
100done
101
102ln -sv kmod /bin/lsmod
103
104cp -v man/*.5 /usr/share/man/man5
105cp -v man/*.8 /usr/share/man/man8</userinput></screen>
106
107 </sect2>
108
109 <sect2 id="contents-kmod" role="content">
110 <title>Contents of Kmod</title>
111
112 <segmentedlist>
113 <segtitle>Installed programs</segtitle>
114 <segtitle>Installed libraries</segtitle>
115
116 <seglistitem>
117 <seg>depmod (link to kmod), insmod (link to kmod), kmod,
118 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
119 and rmmod (link to kmod)</seg>
120 <seg>libkmod.so</seg>
121 </seglistitem>
122 </segmentedlist>
123
124 <variablelist>
125 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
126 <?dbfo list-presentation="list"?>
127 <?dbhtml list-presentation="table"?>
128
129 <varlistentry id="depmod">
130 <term><command>depmod</command></term>
131 <listitem>
132 <para>Creates a dependency file based on the symbols it finds in the
133 existing set of modules; this dependency file is used by
134 <command>modprobe</command> to automatically load the required
135 modules</para>
136 <indexterm zone="ch-system-kmod depmod">
137 <primary sortas="b-depmod">depmod</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="insmod">
143 <term><command>insmod</command></term>
144 <listitem>
145 <para>Installs a loadable module in the running kernel</para>
146 <indexterm zone="ch-system-kmod insmod">
147 <primary sortas="b-insmod">insmod</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="kmod">
153 <term><command>kmod</command></term>
154 <listitem>
155 <para>Loads and unloads kernel modules</para>
156 <indexterm zone="ch-system-kmod kmod">
157 <primary sortas="b-kmod">kmod</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="lsmod">
163 <term><command>lsmod</command></term>
164 <listitem>
165 <para>Lists currently loaded modules</para>
166 <indexterm zone="ch-system-kmod lsmod">
167 <primary sortas="b-lsmod">lsmod</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="modinfo">
173 <term><command>modinfo</command></term>
174 <listitem>
175 <para>Examines an object file associated with a kernel module and
176 displays any information that it can glean</para>
177 <indexterm zone="ch-system-kmod modinfo">
178 <primary sortas="b-modinfo">modinfo</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="modprobe">
184 <term><command>modprobe</command></term>
185 <listitem>
186 <para>Uses a dependency file, created by
187 <command>depmod</command>, to automatically load relevant modules</para>
188 <indexterm zone="ch-system-kmod modprobe">
189 <primary sortas="b-modprobe">modprobe</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="rmmod">
195 <term><command>rmmod</command></term>
196 <listitem>
197 <para>Unloads modules from the running kernel</para>
198 <indexterm zone="ch-system-kmod rmmod">
199 <primary sortas="b-rmmod">rmmod</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="libkmod">
205 <term><filename class="libraryfile">libkmod</filename></term>
206 <listitem>
207 <para>This library is used by other programs to load and unload kernel
208 modules</para>
209 <indexterm zone="ch-system-kmod">
210 <primary sortas="c-libkmod">libkmod</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 </variablelist>
216
217 </sect2>
218
219</sect1>
220
Note: See TracBrowser for help on using the repository browser.