source: chapter06/kmod.xml@ 79dc83f

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 79dc83f was 0844c14, checked in by Matthew Burgess <matthew@…>, 12 years ago

A couple of text updates. Thanks to Chris Staub for the patch. Fixes #3228.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10046 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-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>--with-*</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 </variablelist>
74
75 <para>Compile the package:</para>
76
77<screen><userinput remap="make">make</userinput></screen>
78
79 <para>To test the results, issue:</para>
80
81<screen><userinput remap="test">make check</userinput></screen>
82
83 <para>Install the package, and create symlinks for compatibility with
84 Module-Init-Tools, the package that previously handled Linux kernel modules:
85 </para>
86
87<screen><userinput remap="install">make pkgconfigdir=/usr/lib/pkgconfig install
88
89for target in depmod insmod modinfo modprobe rmmod; do
90 ln -sv ../bin/kmod /sbin/$target
91done
92
93ln -sv kmod /bin/lsmod</userinput></screen>
94
95 </sect2>
96
97 <sect2 id="contents-kmod" role="content">
98 <title>Contents of Kmod</title>
99
100 <segmentedlist>
101 <segtitle>Installed programs</segtitle>
102 <segtitle>Installed libraries</segtitle>
103
104 <seglistitem>
105 <seg>depmod (link to kmod), insmod (link to kmod), kmod, kmod-nolib,
106 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
107 and rmmod (link to kmod)</seg>
108 <seg>/lib/kmod.so</seg>
109 </seglistitem>
110 </segmentedlist>
111
112 <variablelist>
113 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
114 <?dbfo list-presentation="list"?>
115 <?dbhtml list-presentation="table"?>
116
117 <varlistentry id="depmod">
118 <term><command>depmod</command></term>
119 <listitem>
120 <para>Creates a dependency file based on the symbols it finds in the
121 existing set of modules; this dependency file is used by
122 <command>modprobe</command> to automatically load the required
123 modules</para>
124 <indexterm zone="ch-system-kmod depmod">
125 <primary sortas="b-depmod">depmod</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry id="insmod">
131 <term><command>insmod</command></term>
132 <listitem>
133 <para>Installs a loadable module in the running kernel</para>
134 <indexterm zone="ch-system-kmod insmod">
135 <primary sortas="b-insmod">insmod</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="kmod">
141 <term><command>kmod</command></term>
142 <listitem>
143 <para>Loads and unloads kernel modules</para>
144 <indexterm zone="ch-system-kmod kmod">
145 <primary sortas="b-kmod">kmod</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="libkmod">
151 <term><filename class="libraryfile">libkmod</filename></term>
152 <listitem>
153 <para>This library is used by other programs to load and unload kernel
154 modules</para>
155 <indexterm zone="ch-system-kmod">
156 <primary sortas="c-libkmod">libkmod</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="lsmod">
162 <term><command>lsmod</command></term>
163 <listitem>
164 <para>Lists currently loaded modules</para>
165 <indexterm zone="ch-system-kmod lsmod">
166 <primary sortas="b-lsmod">lsmod</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="modinfo">
172 <term><command>modinfo</command></term>
173 <listitem>
174 <para>Examines an object file associated with a kernel module and
175 displays any information that it can glean</para>
176 <indexterm zone="ch-system-kmod modinfo">
177 <primary sortas="b-modinfo">modinfo</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="modprobe">
183 <term><command>modprobe</command></term>
184 <listitem>
185 <para>Uses a dependency file, created by
186 <command>depmod</command>, to automatically load relevant modules</para>
187 <indexterm zone="ch-system-kmod modprobe">
188 <primary sortas="b-modprobe">modprobe</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="rmmod">
194 <term><command>rmmod</command></term>
195 <listitem>
196 <para>Unloads modules from the running kernel</para>
197 <indexterm zone="ch-system-kmod rmmod">
198 <primary sortas="b-rmmod">rmmod</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 </variablelist>
204
205 </sect2>
206
207</sect1>
208
Note: See TracBrowser for help on using the repository browser.