module-init-tools.xml 6.2 KB

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