module-init-tools.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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>First correct a potential problem when modules are specified
  34. using regular expressions:</para>
  35. <screen><userinput remap="pre">patch -Np1 -i ../&module-init-modprobe-patch;</userinput></screen>
  36. <para>Issue the following commands to perform the tests (note that the
  37. <command>make distclean</command> command is required to clean up the source
  38. tree, as the source gets recompiled as part of the testing process):</para>
  39. <screen><userinput remap="test">./configure
  40. make check
  41. make distclean</userinput></screen>
  42. <para>Prepare Module-Init-Tools for compilation:</para>
  43. <screen><userinput remap="configure">./configure --prefix=/ --enable-zlib</userinput></screen>
  44. <para>Compile the package:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>Install the package:</para>
  47. <screen><userinput remap="install">make INSTALL=install install</userinput></screen>
  48. <variablelist>
  49. <title>The meaning of the make parameter:</title>
  50. <varlistentry>
  51. <term><parameter>INSTALL=install</parameter></term>
  52. <listitem>
  53. <para>Normally, <command>make install</command> will not install the
  54. binaries if they already exist. This option overrides that behavior by
  55. calling <command>install</command> instead of using the default
  56. wrapper script.</para>
  57. </listitem>
  58. </varlistentry>
  59. </variablelist>
  60. </sect2>
  61. <sect2 id="contents-module-init-tools" role="content">
  62. <title>Contents of Module-Init-Tools</title>
  63. <segmentedlist>
  64. <segtitle>Installed programs</segtitle>
  65. <seglistitem>
  66. <seg>depmod, generate-modprobe.conf, insmod, insmod.static, lsmod,
  67. modinfo, modprobe, and rmmod</seg>
  68. </seglistitem>
  69. </segmentedlist>
  70. <variablelist>
  71. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  72. <?dbfo list-presentation="list"?>
  73. <?dbhtml list-presentation="table"?>
  74. <varlistentry id="depmod">
  75. <term><command>depmod</command></term>
  76. <listitem>
  77. <para>Creates a dependency file based on the symbols it finds in the
  78. existing set of modules; this dependency file is used by
  79. <command>modprobe</command> to automatically load the required
  80. modules</para>
  81. <indexterm zone="ch-system-module-init-tools depmod">
  82. <primary sortas="b-depmod">depmod</primary>
  83. </indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="generate-modprobe.conf">
  87. <term><command>generate-modprobe.conf</command></term>
  88. <listitem>
  89. <para>Creates a modprobe.conf file from an existing 2.2 or 2.4 module
  90. setup</para>
  91. <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
  92. <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="insmod">
  97. <term><command>insmod</command></term>
  98. <listitem>
  99. <para>Installs a loadable module in the running kernel</para>
  100. <indexterm zone="ch-system-module-init-tools insmod">
  101. <primary sortas="b-insmod">insmod</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="insmod.static">
  106. <term><command>insmod.static</command></term>
  107. <listitem>
  108. <para>A statically compiled version of <command>insmod</command></para>
  109. <indexterm zone="ch-system-module-init-tools insmod.static">
  110. <primary sortas="b-insmod.static">insmod.static</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="lsmod">
  115. <term><command>lsmod</command></term>
  116. <listitem>
  117. <para>Lists currently loaded modules</para>
  118. <indexterm zone="ch-system-module-init-tools lsmod">
  119. <primary sortas="b-lsmod">lsmod</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="modinfo">
  124. <term><command>modinfo</command></term>
  125. <listitem>
  126. <para>Examines an object file associated with a kernel module and
  127. displays any information that it can glean</para>
  128. <indexterm zone="ch-system-module-init-tools modinfo">
  129. <primary sortas="b-modinfo">modinfo</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="modprobe">
  134. <term><command>modprobe</command></term>
  135. <listitem>
  136. <para>Uses a dependency file, created by
  137. <command>depmod</command>, to automatically load relevant modules</para>
  138. <indexterm zone="ch-system-module-init-tools modprobe">
  139. <primary sortas="b-modprobe">modprobe</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="rmmod">
  144. <term><command>rmmod</command></term>
  145. <listitem>
  146. <para>Unloads modules from the running kernel</para>
  147. <indexterm zone="ch-system-module-init-tools rmmod">
  148. <primary sortas="b-rmmod">rmmod</primary>
  149. </indexterm>
  150. </listitem>
  151. </varlistentry>
  152. </variablelist>
  153. </sect2>
  154. </sect1>