source: chapter06/kmod.xml@ 188bee3

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 12.2 12.2-rc1 7.1 7.2 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 188bee3 was 661b744, checked in by Matthew Burgess <matthew@…>, 13 years ago

Fix invocation of kmod's test suite.

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

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