source: BOOK/final-system/common/kmod.xml@ 5ea4e55

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5ea4e55 was 2b220db9, checked in by Chris Staub <chris@…>, 12 years ago

Updates to installed programs lists

  • Property mode set to 100644
File size: 5.2 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 <title>Kmod-&kmod-version;</title>
12
13 <indexterm zone="ch-system-kmod">
14 <primary sortas="a-Kmod">Kmod</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Kmod package contains programs for loading, inserting
21 and removing kernel modules for Linux. Kmod replaces the
22 Module-Init-tools package.</para>
23
24 </sect2>
25
26 <sect2 role="installation">
27 <title>Installation of Kmod</title>
28
29 <para os="a">Prepare Kmod for compilation:</para>
30
31<screen os="b"><userinput>./configure --prefix=/usr \
32 --bindir=/bin --sysconfdir=/etc \
33 --with-rootlibdir=/lib \
34 --with-zlib --with-xz</userinput></screen>
35
36 <variablelist os="c">
37 <title>The meaning of the configure option:</title>
38
39 <varlistentry>
40 <term><parameter>--with-rootlibdir=/lib</parameter></term>
41 <listitem>
42 <para>Install location for shared libraries.</para>
43 </listitem>
44 </varlistentry>
45
46 <varlistentry>
47 <term><parameter>--with-zlib --with-xz</parameter></term>
48 <listitem>
49 <para>This allows the Kmod package to handle zlib and XZ
50 compressed kernel modules.</para>
51 </listitem>
52 </varlistentry>
53
54 </variablelist>
55
56 <para os="d">Compile the package:</para>
57
58<screen os="e"><userinput>make</userinput></screen>
59
60 <para os="f">To test the results, issue: <userinput>make check</userinput></para>
61
62 <para os="g">Install the package:</para>
63
64<screen os="h"><userinput>make install</userinput></screen>
65
66 <para os="i">Create symbolic links for programs that expect Module-Init-Tools.</para>
67
68<screen os="j"><userinput>ln -sv kmod /bin/lsmod
69ln -sv ../bin/kmod /sbin/depmod
70ln -sv ../bin/kmod /sbin/insmod
71ln -sv ../bin/kmod /sbin/modprobe
72ln -sv ../bin/kmod /sbin/modinfo
73ln -sv ../bin/kmod /sbin/rmmod</userinput></screen>
74
75 </sect2>
76
77 <sect2 id="contents-kmod" role="content">
78 <title>Contents of Kmod</title>
79
80 <segmentedlist>
81 <segtitle>Installed programs</segtitle>
82
83 <seglistitem>
84 <seg>depmod, insmod, kmod, lsmod, modinfo, modprobe, and
85 rmmod</seg>
86 </seglistitem>
87 </segmentedlist>
88
89 <variablelist>
90 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
91 <?dbfo list-presentation="list"?>
92 <?dbhtml list-presentation="table"?>
93
94 <varlistentry id="depmod">
95 <term><command>depmod</command></term>
96 <listitem>
97 <para>Creates a dependency file based on the symbols it finds in
98 the existing set of modules; this dependency file is used by
99 <command>modprobe</command> to automatically load the required
100 modules</para>
101 <indexterm zone="ch-system-kmod depmod">
102 <primary sortas="b-depmod">depmod</primary>
103 </indexterm>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry id="insmod">
108 <term><command>insmod</command></term>
109 <listitem>
110 <para>Installs a loadable module in the running kernel</para>
111 <indexterm zone="ch-system-kmod insmod">
112 <primary sortas="b-insmod">insmod</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry id="kmod">
118 <term><command>kmod</command></term>
119 <listitem>
120 <para>Loads and unloads kernel modules</para>
121 <indexterm zone="ch-system-kmod kmod">
122 <primary sortas="b-kmod">kmod</primary>
123 </indexterm>
124 </listitem>
125 </varlistentry>
126
127 <varlistentry id="lsmod">
128 <term><command>lsmod</command></term>
129 <listitem>
130 <para>Lists currently loaded modules</para>
131 <indexterm zone="ch-system-kmod lsmod">
132 <primary sortas="b-lsmod">lsmod</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="modinfo">
138 <term><command>modinfo</command></term>
139 <listitem>
140 <para>Examines an object file associated with a kernel module and
141 displays any information that it can glean</para>
142 <indexterm zone="ch-system-kmod modinfo">
143 <primary sortas="b-modinfo">modinfo</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="modprobe">
149 <term><command>modprobe</command></term>
150 <listitem>
151 <para>Uses a dependency file, created by <command>depmod</command>,
152 to automatically load relevant modules</para>
153 <indexterm zone="ch-system-kmod modprobe">
154 <primary sortas="b-modprobe">modprobe</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="rmmod">
160 <term><command>rmmod</command></term>
161 <listitem>
162 <para>Unloads modules from the running kernel</para>
163 <indexterm zone="ch-system-kmod rmmod">
164 <primary sortas="b-rmmod">rmmod</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 </variablelist>
170
171 </sect2>
172
173</sect1>
Note: See TracBrowser for help on using the repository browser.