module-init-tools.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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=/ --enable-zlib</userinput></screen>
  34. <para>Compile the package:</para>
  35. <screen><userinput>make</userinput></screen>
  36. <para>Install the package:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. </sect2>
  39. <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
  40. <segmentedlist>
  41. <segtitle>Installed programs</segtitle>
  42. <seglistitem><seg>depmod, generate-modprobe.conf, insmod,
  43. insmod.static, lsmod, modinfo, modprobe, and rmmod</seg></seglistitem>
  44. </segmentedlist>
  45. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  46. <?dbfo list-presentation="list"?>
  47. <?dbhtml list-presentation="table"?>
  48. <varlistentry id="depmod">
  49. <term><command>depmod</command></term>
  50. <listitem>
  51. <para>Creates a dependency file based on the symbols it finds in the
  52. existing set of modules; this dependency file is used by <command>modprobe</command> to
  53. automatically load the required modules</para>
  54. <indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
  55. </listitem>
  56. </varlistentry>
  57. <varlistentry id="generate-modprobe.conf">
  58. <term><command>generate-modprobe.conf</command></term>
  59. <listitem>
  60. <para>Creates a modprobe.conf file from an existing 2.2 or 2.4 module setup</para>
  61. <indexterm zone="ch-system-module-init-tools generate-modprobe.conf"><primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary></indexterm>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="insmod">
  65. <term><command>insmod</command></term>
  66. <listitem>
  67. <para>Installs a loadable module in the running kernel</para>
  68. <indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="insmod.static">
  72. <term><command>insmod.static</command></term>
  73. <listitem>
  74. <para>A statically compiled version of <command>insmod</command></para>
  75. <indexterm zone="ch-system-module-init-tools insmod.static"><primary
  76. sortas="b-insmod.static">insmod.static</primary></indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="lsmod">
  80. <term><command>lsmod</command></term>
  81. <listitem>
  82. <para>Lists currently loaded modules</para>
  83. <indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="modinfo">
  87. <term><command>modinfo</command></term>
  88. <listitem>
  89. <para>Examines an object file associated with a kernel module and
  90. displays any information that it can glean</para>
  91. <indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="modprobe">
  95. <term><command>modprobe</command></term>
  96. <listitem>
  97. <para>Uses a dependency file, created by
  98. <command>depmod</command>, to automatically load relevant modules</para>
  99. <indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="rmmod">
  103. <term><command>rmmod</command></term>
  104. <listitem>
  105. <para>Unloads modules from the running kernel</para>
  106. <indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
  107. </listitem>
  108. </varlistentry>
  109. </variablelist>
  110. </sect2>
  111. </sect1>