123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-module-init-tools" role="wrap">
- <?dbhtml filename="module-init-tools.html"?>
- <sect1info condition="script">
- <productname>module-init-tools</productname>
- <productnumber>&module-init-tools-version;</productnumber>
- <address>&module-init-tools-url;</address>
- </sect1info>
- <title>Module-Init-Tools-&module-init-tools-version;</title>
- <indexterm zone="ch-system-module-init-tools">
- <primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>The Module-Init-Tools package contains programs for handling kernel
- modules in Linux kernels greater than or equal to version 2.5.47.</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&module-init-tools-ch6-sbu;</seg>
- <seg>&module-init-tools-ch6-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>安装 Module-Init-Tools</title>
- <para>Apply a patch that contains the generated man pages that were missing
- from the released source tarball:</para>
- <screen><userinput remap="pre">patch -Np1 -i ../&module-init-tools-man-patch;</userinput></screen>
- <para>The test suite of this package is geared towards the needs of its
- Maintainer. The command <command>make check</command> builds a specially
- wrapped version of modprobe which is useless for normal operation. To run
- this (about 0.2 SBU), issue the following commands (note that the
- <command>make clean</command> command is required to clean up the source
- tree before recompiling for normal use):</para>
- <screen><userinput remap="test">DOCBOOKTOMAN=/bin/true ./configure
- make check
- sed -i -e 's@../../configure@DOCBOOKTOMAN=/bin/true &@' tests/runtests
- ./tests/runtests
- make clean</userinput></screen>
- <para>准备安装 Module-Init-Tools:</para>
- <screen><userinput remap="configure">DOCBOOKTOMAN=/bin/true ./configure --prefix=/ \
- --enable-zlib-dynamic --mandir=/usr/share/man</userinput></screen>
- <para>编译该软件包:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <para>安装该软件包:</para>
- <screen><userinput remap="install">make INSTALL=install install</userinput></screen>
- <variablelist>
- <title>The meaning of the make parameter:</title>
- <varlistentry>
- <term><parameter>INSTALL=install</parameter></term>
- <listitem>
- <para>Normally, <command>make install</command> will not install the
- binaries if they already exist. This option overrides that behavior by
- calling <command>install</command> instead of using the default
- wrapper script.</para>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- <sect2 id="contents-module-init-tools" role="content">
- <title>Module-Init-Tools 的内容</title>
- <segmentedlist>
- <segtitle>安装的程序</segtitle>
- <seglistitem>
- <seg>depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and rmmod</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">简要描述</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="depmod">
- <term><command>depmod</command></term>
- <listitem>
- <para>Creates a dependency file based on the symbols it finds in the
- existing set of modules; this dependency file is used by
- <command>modprobe</command> to automatically load the required
- modules</para>
- <indexterm zone="ch-system-module-init-tools depmod">
- <primary sortas="b-depmod">depmod</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="insmod">
- <term><command>insmod</command></term>
- <listitem>
- <para>Installs a loadable module in the running kernel</para>
- <indexterm zone="ch-system-module-init-tools insmod">
- <primary sortas="b-insmod">insmod</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="insmod.static">
- <term><command>insmod.static</command></term>
- <listitem>
- <para>A statically compiled version of <command>insmod</command></para>
- <indexterm zone="ch-system-module-init-tools insmod.static">
- <primary sortas="b-insmod.static">insmod.static</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="lsmod">
- <term><command>lsmod</command></term>
- <listitem>
- <para>Lists currently loaded modules</para>
- <indexterm zone="ch-system-module-init-tools lsmod">
- <primary sortas="b-lsmod">lsmod</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="modinfo">
- <term><command>modinfo</command></term>
- <listitem>
- <para>Examines an object file associated with a kernel module and
- displays any information that it can glean</para>
- <indexterm zone="ch-system-module-init-tools modinfo">
- <primary sortas="b-modinfo">modinfo</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="modprobe">
- <term><command>modprobe</command></term>
- <listitem>
- <para>Uses a dependency file, created by
- <command>depmod</command>, to automatically load relevant modules</para>
- <indexterm zone="ch-system-module-init-tools modprobe">
- <primary sortas="b-modprobe">modprobe</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="rmmod">
- <term><command>rmmod</command></term>
- <listitem>
- <para>Unloads modules from the running kernel</para>
- <indexterm zone="ch-system-module-init-tools rmmod">
- <primary sortas="b-rmmod">rmmod</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
|