source: chapter08/kmod.xml@ 26fec27

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 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 26fec27 was 6a156bab, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Mostly text updates in Chapter 8.
There are a couple of minor command changes.

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

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