source: BOOK/final-system/common/kmod.xml@ 6e5f7bd

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6e5f7bd was 24b004c, checked in by Chris Staub <chris@…>, 11 years ago

Remove end-of-line spaces

  • Property mode set to 100644
File size: 5.3 KB
RevLine 
[7f2a588]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[e5ca6b9d]8<sect1 id="ch-system-kmod" role="wrap">
9 <?dbhtml filename="kmod.html"?>
[3f8be484]10
[e5ca6b9d]11 <title>Kmod-&kmod-version;</title>
[3f8be484]12
[e5ca6b9d]13 <indexterm zone="ch-system-kmod">
14 <primary sortas="a-Kmod">Kmod</primary>
[3f8be484]15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
[e5ca6b9d]20 <para>The Kmod package contains programs for loading, inserting
[24b004c]21 and removing kernel modules for Linux. Kmod replaces the
[e5ca6b9d]22 Module-Init-tools package.</para>
[3f8be484]23
24 </sect2>
25
26 <sect2 role="installation">
[e5ca6b9d]27 <title>Installation of Kmod</title>
[3f8be484]28
[e5ca6b9d]29 <para os="a">Prepare Kmod for compilation:</para>
[8ac1263]30
[e5ca6b9d]31<screen os="b"><userinput>./configure --prefix=/usr \
32 --bindir=/bin --sysconfdir=/etc \
[adab4c5]33 --with-rootlibdir=/lib \
[e5ca6b9d]34 --with-zlib --with-xz</userinput></screen>
[8ac1263]35
[e5ca6b9d]36 <variablelist os="c">
[da0b4a3]37 <title>The meaning of the configure option:</title>
[3f8be484]38
39 <varlistentry>
[e5ca6b9d]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>
[3f8be484]48 <listitem>
[e5ca6b9d]49 <para>This allows the Kmod package to handle zlib and XZ
50 compressed kernel modules.</para>
[3f8be484]51 </listitem>
52 </varlistentry>
53
54 </variablelist>
55
[e5ca6b9d]56 <para os="d">Compile the package:</para>
57
58<screen os="e"><userinput>make</userinput></screen>
[3f8be484]59
[686839b]60 <para os="f">To test the results, issue:</para>
61
62<screen os="f2"><userinput remap="test">make check</userinput></screen>
[c6c6c35]63
[e5ca6b9d]64 <para os="g">Install the package:</para>
[3f8be484]65
[a81e2bd]66<screen os="h"><userinput>make install
67make -C man install</userinput></screen>
[e69b20a]68
[e5ca6b9d]69 <para os="i">Create symbolic links for programs that expect Module-Init-Tools.</para>
70
[bafe4be]71<screen os="j"><userinput>ln -sfv kmod /bin/lsmod
[fa271a1]72for tool in depmod insmod modprobe modinfo rmmod; do
73ln -sfv ../bin/kmod /sbin/${tool}
74done</userinput></screen>
[24b004c]75
[3f8be484]76 </sect2>
77
[e5ca6b9d]78 <sect2 id="contents-kmod" role="content">
79 <title>Contents of Kmod</title>
[3f8be484]80
81 <segmentedlist>
82 <segtitle>Installed programs</segtitle>
83
84 <seglistitem>
[c8a83d8]85 <seg>depmod (link to kmod), insmod (link to kmod), kmod,
86 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
87 and rmmod (link to kmod) </seg>
[3f8be484]88 </seglistitem>
89 </segmentedlist>
90
91 <variablelist>
92 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
93 <?dbfo list-presentation="list"?>
94 <?dbhtml list-presentation="table"?>
95
96 <varlistentry id="depmod">
97 <term><command>depmod</command></term>
98 <listitem>
99 <para>Creates a dependency file based on the symbols it finds in
100 the existing set of modules; this dependency file is used by
101 <command>modprobe</command> to automatically load the required
102 modules</para>
[e5ca6b9d]103 <indexterm zone="ch-system-kmod depmod">
[3f8be484]104 <primary sortas="b-depmod">depmod</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="insmod">
110 <term><command>insmod</command></term>
111 <listitem>
112 <para>Installs a loadable module in the running kernel</para>
[e5ca6b9d]113 <indexterm zone="ch-system-kmod insmod">
[3f8be484]114 <primary sortas="b-insmod">insmod</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
[2b220db9]119 <varlistentry id="kmod">
120 <term><command>kmod</command></term>
121 <listitem>
122 <para>Loads and unloads kernel modules</para>
123 <indexterm zone="ch-system-kmod kmod">
124 <primary sortas="b-kmod">kmod</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
[3f8be484]129 <varlistentry id="lsmod">
130 <term><command>lsmod</command></term>
131 <listitem>
132 <para>Lists currently loaded modules</para>
[e5ca6b9d]133 <indexterm zone="ch-system-kmod lsmod">
[3f8be484]134 <primary sortas="b-lsmod">lsmod</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="modinfo">
140 <term><command>modinfo</command></term>
141 <listitem>
142 <para>Examines an object file associated with a kernel module and
143 displays any information that it can glean</para>
[e5ca6b9d]144 <indexterm zone="ch-system-kmod modinfo">
[3f8be484]145 <primary sortas="b-modinfo">modinfo</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="modprobe">
151 <term><command>modprobe</command></term>
152 <listitem>
153 <para>Uses a dependency file, created by <command>depmod</command>,
154 to automatically load relevant modules</para>
[e5ca6b9d]155 <indexterm zone="ch-system-kmod modprobe">
[3f8be484]156 <primary sortas="b-modprobe">modprobe</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="rmmod">
162 <term><command>rmmod</command></term>
163 <listitem>
164 <para>Unloads modules from the running kernel</para>
[e5ca6b9d]165 <indexterm zone="ch-system-kmod rmmod">
[3f8be484]166 <primary sortas="b-rmmod">rmmod</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 </variablelist>
172
173 </sect2>
174
175</sect1>
Note: See TracBrowser for help on using the repository browser.