module-init-tools.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-module-init-tools" role="wrap">
  9. <title>Module-Init-Tools-&module-init-tools-version;</title>
  10. <?dbhtml filename="module-init-tools.html"?>
  11. <indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Module-Init-Tools package contains programs for handling kernel
  14. modules in Linux kernels greater than or equal to version 2.5.47.</para>
  15. <segmentedlist>
  16. <segtitle>&buildtime;</segtitle>
  17. <segtitle>&diskspace;</segtitle>
  18. <seglistitem><seg>0.1 SBU</seg><seg>4.9 MB</seg></seglistitem>
  19. </segmentedlist>
  20. <segmentedlist>
  21. <segtitle>&dependencies;</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Bison,
  23. Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Module-Init-Tools</title>
  28. <para>Module-Init-Tools attempts to rewrite its
  29. <filename>modprobe.conf</filename> man page during the build process. This is
  30. unnecessary and also relies on <command>docbook2man</command> &mdash; which is not
  31. installed in LFS. Run the following command to avoid this:</para>
  32. <screen><userinput>touch modprobe.conf.5</userinput></screen>
  33. <para>If you wish to run the test suite for Module-Init-Tools, download the
  34. separate tarball and unpack it along with the source tarball. The testsuite
  35. tarball will unpack into a <filename class='directory'>tests</filename>
  36. directory of the source tree. Issue the following commands to perform the tests
  37. (note that the <command>make distclean</command> command is required to clean up
  38. the source tree, as the source gets recompiled as part of the testing process):
  39. </para>
  40. <screen><userinput>./configure &amp;&amp;
  41. make check &amp;&amp;
  42. make distclean</userinput></screen>
  43. <para>Prepare Module-Init-Tools for compilation:</para>
  44. <screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
  45. <para>The meaning of the configure options:</para>
  46. <variablelist>
  47. <varlistentry>
  48. <term><parameter>--enable-zlib</parameter></term>
  49. <listitem><para>This allows the Module-Init-Tools package to handle compressed
  50. kernel modules.</para></listitem>
  51. </varlistentry>
  52. </variablelist>
  53. <para>Compile the package:</para>
  54. <screen><userinput>make</userinput></screen>
  55. <para>Install the package:</para>
  56. <screen><userinput>make install</userinput></screen>
  57. </sect2>
  58. <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
  59. <segmentedlist>
  60. <segtitle>Installed programs</segtitle>
  61. <seglistitem><seg>depmod, insmod,
  62. insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
  63. insmod), and rmmod (link to insmod)</seg></seglistitem>
  64. </segmentedlist>
  65. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="depmod">
  69. <term><command>depmod</command></term>
  70. <listitem>
  71. <para>Creates a dependency file based on the symbols it finds in the
  72. existing set of modules; this dependency file is used by <command>modprobe</command> to
  73. automatically load the required modules</para>
  74. <indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry id="insmod">
  78. <term><command>insmod</command></term>
  79. <listitem>
  80. <para>Installs a loadable module in the running kernel</para>
  81. <indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="insmod.static">
  85. <term><command>insmod.static</command></term>
  86. <listitem>
  87. <para>A statically compiled version of <command>insmod</command></para>
  88. <indexterm zone="ch-system-module-init-tools insmod.static"><primary
  89. sortas="b-insmod.static">insmod.static</primary></indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="lsmod">
  93. <term><command>lsmod</command></term>
  94. <listitem>
  95. <para>Lists currently loaded modules</para>
  96. <indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="modinfo">
  100. <term><command>modinfo</command></term>
  101. <listitem>
  102. <para>Examines an object file associated with a kernel module and
  103. displays any information that it can glean</para>
  104. <indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="modprobe">
  108. <term><command>modprobe</command></term>
  109. <listitem>
  110. <para>Uses a dependency file, created by
  111. <command>depmod</command>, to automatically load relevant modules</para>
  112. <indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="rmmod">
  116. <term><command>rmmod</command></term>
  117. <listitem>
  118. <para>Unloads modules from the running kernel</para>
  119. <indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
  120. </listitem>
  121. </varlistentry>
  122. </variablelist>
  123. </sect2>
  124. </sect1>