source: chapter06/kmod.xml@ a4d96cea

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 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 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 a4d96cea was a4d96cea, checked in by Matthew Burgess <matthew@…>, 12 years ago

Fix XML validation error.

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

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