module-init-tools.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. <sect1 id="ch-system-module-init-tools" role="wrap">
  8. <?dbhtml filename="module-init-tools.html"?>
  9. <sect1info condition="script">
  10. <productname>module-init-tools</productname>
  11. <productnumber>&module-init-tools-version;</productnumber>
  12. <address>&module-init-tools-url;</address>
  13. </sect1info>
  14. <title>Module-Init-Tools-&module-init-tools-version;</title>
  15. <indexterm zone="ch-system-module-init-tools">
  16. <primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Module-Init-Tools package contains programs for handling kernel
  21. modules in Linux kernels greater than or equal to version 2.5.47.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&module-init-tools-ch6-sbu;</seg>
  27. <seg>&module-init-tools-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Module-Init-Tools</title>
  33. <para>The tarball only contains sgml source for the manpages. The following
  34. patch contains the result of processing this through <command>docbook2man</command>
  35. (see <ulink url="&blfs-root;view/svn/pst/docbook-utils.html"/>)
  36. which we do not build as part of a basic LFS installation:</para>
  37. <screen><userinput remap="pre">patch -Np1 -i ../&module-init-manpages-patch;</userinput></screen>
  38. <para>The testsuite of this package is geared towards the needs of its
  39. Maintainer. The command <command>make check</command> builds a specially
  40. wrapped version of modprobe which is useless for normal operation. To run
  41. this (about 0.2 SBU), issue the following commands (note that the
  42. <command>make clean</command> command is required to clean up the source
  43. tree before recompiling for normal use):</para>
  44. <screen><userinput remap="test">./configure
  45. make check
  46. make clean</userinput></screen>
  47. <para>Prepare Module-Init-Tools for compilation:</para>
  48. <screen><userinput remap="configure">./configure --prefix=/ --enable-zlib --mandir=/usr/share/man</userinput></screen>
  49. <para>Compile the package:</para>
  50. <screen><userinput remap="make">make</userinput></screen>
  51. <para>Install the package:</para>
  52. <screen><userinput remap="install">make INSTALL=install install</userinput></screen>
  53. <variablelist>
  54. <title>The meaning of the make parameter:</title>
  55. <varlistentry>
  56. <term><parameter>INSTALL=install</parameter></term>
  57. <listitem>
  58. <para>Normally, <command>make install</command> will not install the
  59. binaries if they already exist. This option overrides that behavior by
  60. calling <command>install</command> instead of using the default
  61. wrapper script.</para>
  62. </listitem>
  63. </varlistentry>
  64. </variablelist>
  65. </sect2>
  66. <sect2 id="contents-module-init-tools" role="content">
  67. <title>Contents of Module-Init-Tools</title>
  68. <segmentedlist>
  69. <segtitle>Installed programs</segtitle>
  70. <seglistitem>
  71. <seg>depmod, generate-modprobe.conf, insmod, insmod.static, lsmod,
  72. modinfo, modprobe, and rmmod</seg>
  73. </seglistitem>
  74. </segmentedlist>
  75. <variablelist>
  76. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  77. <?dbfo list-presentation="list"?>
  78. <?dbhtml list-presentation="table"?>
  79. <varlistentry id="depmod">
  80. <term><command>depmod</command></term>
  81. <listitem>
  82. <para>Creates a dependency file based on the symbols it finds in the
  83. existing set of modules; this dependency file is used by
  84. <command>modprobe</command> to automatically load the required
  85. modules</para>
  86. <indexterm zone="ch-system-module-init-tools depmod">
  87. <primary sortas="b-depmod">depmod</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry id="generate-modprobe.conf">
  92. <term><command>generate-modprobe.conf</command></term>
  93. <listitem>
  94. <para>Creates a modprobe.conf file from an existing 2.2 or 2.4 module
  95. setup</para>
  96. <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
  97. <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="insmod">
  102. <term><command>insmod</command></term>
  103. <listitem>
  104. <para>Installs a loadable module in the running kernel</para>
  105. <indexterm zone="ch-system-module-init-tools insmod">
  106. <primary sortas="b-insmod">insmod</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="insmod.static">
  111. <term><command>insmod.static</command></term>
  112. <listitem>
  113. <para>A statically compiled version of <command>insmod</command></para>
  114. <indexterm zone="ch-system-module-init-tools insmod.static">
  115. <primary sortas="b-insmod.static">insmod.static</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="lsmod">
  120. <term><command>lsmod</command></term>
  121. <listitem>
  122. <para>Lists currently loaded modules</para>
  123. <indexterm zone="ch-system-module-init-tools lsmod">
  124. <primary sortas="b-lsmod">lsmod</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="modinfo">
  129. <term><command>modinfo</command></term>
  130. <listitem>
  131. <para>Examines an object file associated with a kernel module and
  132. displays any information that it can glean</para>
  133. <indexterm zone="ch-system-module-init-tools modinfo">
  134. <primary sortas="b-modinfo">modinfo</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="modprobe">
  139. <term><command>modprobe</command></term>
  140. <listitem>
  141. <para>Uses a dependency file, created by
  142. <command>depmod</command>, to automatically load relevant modules</para>
  143. <indexterm zone="ch-system-module-init-tools modprobe">
  144. <primary sortas="b-modprobe">modprobe</primary>
  145. </indexterm>
  146. </listitem>
  147. </varlistentry>
  148. <varlistentry id="rmmod">
  149. <term><command>rmmod</command></term>
  150. <listitem>
  151. <para>Unloads modules from the running kernel</para>
  152. <indexterm zone="ch-system-module-init-tools rmmod">
  153. <primary sortas="b-rmmod">rmmod</primary>
  154. </indexterm>
  155. </listitem>
  156. </varlistentry>
  157. </variablelist>
  158. </sect2>
  159. </sect1>