source: chapter08/kmod.xml@ dcf5543

12.2 12.2-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.2 xry111/multilib
Last change on this file since dcf5543 was dcf5543, checked in by Bruce Dubbs <bdubbs@…>, 6 months ago

Package updates.
Update to wheel-0.43.0.
Update to setuptools-69.2.0 (Python module).
Update to meson-1.4.0.
Update to expat-2.6.2 (Security fix).
Update to iana-etc-20240305.
Update to vim-9.1.0161.
Update to xz-5.6.1.
Update to shadow-4.15.0.
Update to psmisc-23.7.
Update to kmod-32.
Update to elfutils-0.191.

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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-fin-sbu;</seg>
35 <seg>&kmod-fin-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 --sysconfdir=/etc \
48 --with-openssl \
49 --with-xz \
50 --with-zstd \
51 --with-zlib</userinput></screen>
52
53 <variablelist>
54 <title>The meaning of the configure options:</title>
55
56 <varlistentry>
57 <term>
58 <parameter>--with-openssl</parameter>
59 </term>
60 <listitem>
61 <para>This option enables Kmod to handle PKCS7 signatures for
62 kernel modules.</para>
63 </listitem>
64 </varlistentry>
65
66 <varlistentry>
67 <term>
68 <parameter>--with-xz</parameter>,
69 <parameter>--with-zlib</parameter>, and
70 <parameter>--with-zstd</parameter>
71 </term>
72 <listitem>
73 <para>These options enable Kmod to handle compressed kernel modules.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 <para>Compile the package:</para>
80
81<screen><userinput remap="make">make</userinput></screen>
82
83 <para>The test suite of this package requires raw kernel headers
84 (not the <quote>sanitized</quote> kernel headers installed earlier),
85 which are beyond the scope of LFS.</para>
86
87 <para>Install the package and create symlinks for
88 compatibility with Module-Init-Tools (the package that previously handled
89 Linux kernel modules):</para>
90
91<screen><userinput remap="install">make install
92
93for target in depmod insmod modinfo modprobe rmmod; do
94 ln -sfv ../bin/kmod /usr/sbin/$target
95 rm -fv /usr/bin/$target
96done
97
98ln -sfv kmod /usr/bin/lsmod</userinput></screen>
99
100 </sect2>
101
102 <sect2 id="contents-kmod" role="content">
103 <title>Contents of Kmod</title>
104
105 <segmentedlist>
106 <segtitle>Installed programs</segtitle>
107 <segtitle>Installed library</segtitle>
108
109 <seglistitem>
110 <seg>depmod (link to kmod), insmod (link to kmod), kmod,
111 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
112 and rmmod (link to kmod)</seg>
113 <seg>libkmod.so</seg>
114 </seglistitem>
115 </segmentedlist>
116
117 <variablelist>
118 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
119 <?dbfo list-presentation="list"?>
120 <?dbhtml list-presentation="table"?>
121
122 <varlistentry id="depmod">
123 <term><command>depmod</command></term>
124 <listitem>
125 <para>Creates a dependency file based on the symbols it finds in the
126 existing set of modules; this dependency file is used by
127 <command>modprobe</command> to automatically load the required
128 modules</para>
129 <indexterm zone="ch-system-kmod depmod">
130 <primary sortas="b-depmod">depmod</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="insmod">
136 <term><command>insmod</command></term>
137 <listitem>
138 <para>Installs a loadable module in the running kernel</para>
139 <indexterm zone="ch-system-kmod insmod">
140 <primary sortas="b-insmod">insmod</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="kmod">
146 <term><command>kmod</command></term>
147 <listitem>
148 <para>Loads and unloads kernel modules</para>
149 <indexterm zone="ch-system-kmod kmod">
150 <primary sortas="b-kmod">kmod</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="lsmod">
156 <term><command>lsmod</command></term>
157 <listitem>
158 <para>Lists currently loaded modules</para>
159 <indexterm zone="ch-system-kmod lsmod">
160 <primary sortas="b-lsmod">lsmod</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry id="modinfo">
166 <term><command>modinfo</command></term>
167 <listitem>
168 <para>Examines an object file associated with a kernel module and
169 displays any information that it can glean</para>
170 <indexterm zone="ch-system-kmod modinfo">
171 <primary sortas="b-modinfo">modinfo</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="modprobe">
177 <term><command>modprobe</command></term>
178 <listitem>
179 <para>Uses a dependency file, created by
180 <command>depmod</command>, to automatically load relevant modules</para>
181 <indexterm zone="ch-system-kmod modprobe">
182 <primary sortas="b-modprobe">modprobe</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="rmmod">
188 <term><command>rmmod</command></term>
189 <listitem>
190 <para>Unloads modules from the running kernel</para>
191 <indexterm zone="ch-system-kmod rmmod">
192 <primary sortas="b-rmmod">rmmod</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="libkmod">
198 <term><filename class="libraryfile">libkmod</filename></term>
199 <listitem>
200 <para>This library is used by other programs to load and unload kernel
201 modules</para>
202 <indexterm zone="ch-system-kmod">
203 <primary sortas="c-libkmod">libkmod</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 </variablelist>
209
210 </sect2>
211
212</sect1>
213
Note: See TracBrowser for help on using the repository browser.