source: chapter06/kmod.xml@ f6125f3

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

Remove some unnecesary text.

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

  • Property mode set to 100644
File size: 6.5 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, man pages, and create symlinks for
92 compatibility with Module-Init-Tools (the package that previously handled
93 Linux kernel modules):</para>
94
95<screen><userinput remap="install">make install
96make -C man 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</userinput></screen>
103
104 </sect2>
105
106 <sect2 id="contents-kmod" role="content">
107 <title>Contents of Kmod</title>
108
109 <segmentedlist>
110 <segtitle>Installed programs</segtitle>
111 <segtitle>Installed libraries</segtitle>
112
113 <seglistitem>
114 <seg>depmod (link to kmod), insmod (link to kmod), kmod,
115 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
116 and rmmod (link to kmod)</seg>
117 <seg>libkmod.so</seg>
118 </seglistitem>
119 </segmentedlist>
120
121 <variablelist>
122 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
123 <?dbfo list-presentation="list"?>
124 <?dbhtml list-presentation="table"?>
125
126 <varlistentry id="depmod">
127 <term><command>depmod</command></term>
128 <listitem>
129 <para>Creates a dependency file based on the symbols it finds in the
130 existing set of modules; this dependency file is used by
131 <command>modprobe</command> to automatically load the required
132 modules</para>
133 <indexterm zone="ch-system-kmod depmod">
134 <primary sortas="b-depmod">depmod</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="insmod">
140 <term><command>insmod</command></term>
141 <listitem>
142 <para>Installs a loadable module in the running kernel</para>
143 <indexterm zone="ch-system-kmod insmod">
144 <primary sortas="b-insmod">insmod</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="kmod">
150 <term><command>kmod</command></term>
151 <listitem>
152 <para>Loads and unloads kernel modules</para>
153 <indexterm zone="ch-system-kmod kmod">
154 <primary sortas="b-kmod">kmod</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="lsmod">
160 <term><command>lsmod</command></term>
161 <listitem>
162 <para>Lists currently loaded modules</para>
163 <indexterm zone="ch-system-kmod lsmod">
164 <primary sortas="b-lsmod">lsmod</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="modinfo">
170 <term><command>modinfo</command></term>
171 <listitem>
172 <para>Examines an object file associated with a kernel module and
173 displays any information that it can glean</para>
174 <indexterm zone="ch-system-kmod modinfo">
175 <primary sortas="b-modinfo">modinfo</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="modprobe">
181 <term><command>modprobe</command></term>
182 <listitem>
183 <para>Uses a dependency file, created by
184 <command>depmod</command>, to automatically load relevant modules</para>
185 <indexterm zone="ch-system-kmod modprobe">
186 <primary sortas="b-modprobe">modprobe</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="rmmod">
192 <term><command>rmmod</command></term>
193 <listitem>
194 <para>Unloads modules from the running kernel</para>
195 <indexterm zone="ch-system-kmod rmmod">
196 <primary sortas="b-rmmod">rmmod</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="libkmod">
202 <term><filename class="libraryfile">libkmod</filename></term>
203 <listitem>
204 <para>This library is used by other programs to load and unload kernel
205 modules</para>
206 <indexterm zone="ch-system-kmod">
207 <primary sortas="c-libkmod">libkmod</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 </variablelist>
213
214 </sect2>
215
216</sect1>
217
Note: See TracBrowser for help on using the repository browser.