blob: 728f59bc7ac9f3d2f8337a529765907fe59f0ebf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-system-kmod" role="wrap">
<?dbhtml filename="kmod.html"?>
<sect1info condition="script">
<productname>kmod</productname>
<productnumber>&kmod-version;</productnumber>
<address>&kmod-url;</address>
</sect1info>
<title>Kmod-&kmod-version;</title>
<indexterm zone="ch-system-kmod">
<primary sortas="a-Kmod">Kmod</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The Kmod package contains libraries and utilities for loading kernel
modules</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&kmod-fin-sbu;</seg>
<seg>&kmod-fin-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Kmod</title>
<para>Prepare Kmod for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr \
--sysconfdir=/etc \
--with-openssl \
--with-xz \
--with-zstd \
--with-zlib</userinput></screen>
<variablelist>
<title>The meaning of the configure options:</title>
<varlistentry>
<term>
<parameter>--with-openssl</parameter>
</term>
<listitem>
<para>This option enables Kmod to handle PKCS7 signatures for
kernel modules.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>--with-xz</parameter>,
<parameter>--with-zlib</parameter>, and
<parameter>--with-zstd</parameter>
</term>
<listitem>
<para>These options enable Kmod to handle compressed kernel modules.</para>
</listitem>
</varlistentry>
</variablelist>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>The test suite of this package requires raw kernel headers
(not the <quote>sanitized</quote> kernel headers installed earlier),
which are beyond the scope of LFS.</para>
<para>Install the package and create symlinks for
compatibility with Module-Init-Tools (the package that previously handled
Linux kernel modules):</para>
<screen><userinput remap="install">make install
for target in depmod insmod modinfo modprobe rmmod; do
ln -sfv ../bin/kmod /usr/sbin/$target
done
ln -sfv kmod /usr/bin/lsmod</userinput></screen>
</sect2>
<sect2 id="contents-kmod" role="content">
<title>Contents of Kmod</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<segtitle>Installed library</segtitle>
<seglistitem>
<seg>depmod (link to kmod), insmod (link to kmod), kmod,
lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
and rmmod (link to kmod)</seg>
<seg>libkmod.so</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="depmod">
<term><command>depmod</command></term>
<listitem>
<para>Creates a dependency file based on the symbols it finds in the
existing set of modules; this dependency file is used by
<command>modprobe</command> to automatically load the required
modules</para>
<indexterm zone="ch-system-kmod depmod">
<primary sortas="b-depmod">depmod</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="insmod">
<term><command>insmod</command></term>
<listitem>
<para>Installs a loadable module in the running kernel</para>
<indexterm zone="ch-system-kmod insmod">
<primary sortas="b-insmod">insmod</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="kmod">
<term><command>kmod</command></term>
<listitem>
<para>Loads and unloads kernel modules</para>
<indexterm zone="ch-system-kmod kmod">
<primary sortas="b-kmod">kmod</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="lsmod">
<term><command>lsmod</command></term>
<listitem>
<para>Lists currently loaded modules</para>
<indexterm zone="ch-system-kmod lsmod">
<primary sortas="b-lsmod">lsmod</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="modinfo">
<term><command>modinfo</command></term>
<listitem>
<para>Examines an object file associated with a kernel module and
displays any information that it can glean</para>
<indexterm zone="ch-system-kmod modinfo">
<primary sortas="b-modinfo">modinfo</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="modprobe">
<term><command>modprobe</command></term>
<listitem>
<para>Uses a dependency file, created by
<command>depmod</command>, to automatically load relevant modules</para>
<indexterm zone="ch-system-kmod modprobe">
<primary sortas="b-modprobe">modprobe</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rmmod">
<term><command>rmmod</command></term>
<listitem>
<para>Unloads modules from the running kernel</para>
<indexterm zone="ch-system-kmod rmmod">
<primary sortas="b-rmmod">rmmod</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libkmod">
<term><filename class="libraryfile">libkmod</filename></term>
<listitem>
<para>This library is used by other programs to load and unload kernel
modules</para>
<indexterm zone="ch-system-kmod">
<primary sortas="c-libkmod">libkmod</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
|