module-init-tools.xml 5.2 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. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-module-init-tools" role="wrap">
  7. <title>Module-Init-Tools-&module-init-tools-version;</title>
  8. <?dbhtml filename="module-init-tools.html"?>
  9. <indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Module-Init-Tools package contains programs for handling kernel
  12. modules in Linux kernels greater than or equal to version 2.5.47.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.3 SBU</seg><seg>3.3 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>&dependencies;</segtitle>
  20. <seglistitem><seg>Bash, Binutils, Bison,
  21. Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Module-Init-Tools</title>
  26. <para>Issue the following commands to perform the tests (note that the
  27. <command>make distclean</command> command is required to clean up the source
  28. tree, as the source gets recompiled as part of the testing process):</para>
  29. <screen><userinput>./configure &amp;&amp;
  30. make check &amp;&amp;
  31. make distclean</userinput></screen>
  32. <para>Prepare Module-Init-Tools for compilation:</para>
  33. <screen><userinput>./configure --prefix="" --mandir=/usr/share/man \
  34. --enable-zlib</userinput></screen>
  35. <para>The meaning of the configure options:</para>
  36. <variablelist>
  37. <varlistentry>
  38. <term><parameter>--mandir=/usr/share/man</parameter></term>
  39. <listitem><para>This ensures the man pages are installed in the correct
  40. location.</para></listitem>
  41. </varlistentry>
  42. <varlistentry>
  43. <term><parameter>--enable-zlib</parameter></term>
  44. <listitem><para>This allows the Module-Init-Tools package to handle compressed
  45. kernel modules.</para></listitem>
  46. </varlistentry>
  47. </variablelist>
  48. <para>Compile the package:</para>
  49. <screen><userinput>make</userinput></screen>
  50. <para>Install the package:</para>
  51. <screen><userinput>make install</userinput></screen>
  52. </sect2>
  53. <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
  54. <segmentedlist>
  55. <segtitle>Installed programs</segtitle>
  56. <seglistitem><seg>depmod, generate-modprobe.conf, insmod,
  57. insmod.static, lsmod, modinfo, modprobe, and rmmod</seg></seglistitem>
  58. </segmentedlist>
  59. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  60. <?dbfo list-presentation="list"?>
  61. <?dbhtml list-presentation="table"?>
  62. <varlistentry id="depmod">
  63. <term><command>depmod</command></term>
  64. <listitem>
  65. <para>Creates a dependency file based on the symbols it finds in the
  66. existing set of modules; this dependency file is used by <command>modprobe</command> to
  67. automatically load the required modules</para>
  68. <indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="generate-modprobe.conf">
  72. <term><command>generate-modprobe.conf</command></term>
  73. <listitem>
  74. <para>Creates a modprobe.conf file from an existing 2.2 or 2.4 module setup</para>
  75. <indexterm zone="ch-system-module-init-tools generate-modprobe.conf"><primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary></indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="insmod">
  79. <term><command>insmod</command></term>
  80. <listitem>
  81. <para>Installs a loadable module in the running kernel</para>
  82. <indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="insmod.static">
  86. <term><command>insmod.static</command></term>
  87. <listitem>
  88. <para>A statically compiled version of <command>insmod</command></para>
  89. <indexterm zone="ch-system-module-init-tools insmod.static"><primary
  90. sortas="b-insmod.static">insmod.static</primary></indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="lsmod">
  94. <term><command>lsmod</command></term>
  95. <listitem>
  96. <para>Lists currently loaded modules</para>
  97. <indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="modinfo">
  101. <term><command>modinfo</command></term>
  102. <listitem>
  103. <para>Examines an object file associated with a kernel module and
  104. displays any information that it can glean</para>
  105. <indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry id="modprobe">
  109. <term><command>modprobe</command></term>
  110. <listitem>
  111. <para>Uses a dependency file, created by
  112. <command>depmod</command>, to automatically load relevant modules</para>
  113. <indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="rmmod">
  117. <term><command>rmmod</command></term>
  118. <listitem>
  119. <para>Unloads modules from the running kernel</para>
  120. <indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
  121. </listitem>
  122. </varlistentry>
  123. </variablelist>
  124. </sect2>
  125. </sect1>