kmod.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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-kmod" role="wrap">
  8. <?dbhtml filename="kmod.html"?>
  9. <sect1info condition="script">
  10. <productname>kmod</productname>
  11. <productnumber>&kmod-version;</productnumber>
  12. <address>&kmod-url;</address>
  13. </sect1info>
  14. <title>Kmod-&kmod-version;</title>
  15. <indexterm zone="ch-system-kmod">
  16. <primary sortas="a-Kmod">Kmod</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Kmod package contains libraries and utilities for loading kernel
  21. modules</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&kmod-ch6-sbu;</seg>
  27. <seg>&kmod-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Kmod</title>
  33. <para>Prepare Kmod for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr \
  35. --bindir=/bin \
  36. --sysconfdir=/etc \
  37. --with-rootlibdir=/lib \
  38. --with-xz \
  39. --with-zlib</userinput></screen>
  40. <variablelist>
  41. <title>The meaning of the configure options:</title>
  42. <varlistentry>
  43. <term><parameter>--with-xz, --with-zlib</parameter></term>
  44. <listitem>
  45. <para>These options enable Kmod to handle compressed kernel modules.</para>
  46. </listitem>
  47. </varlistentry>
  48. <varlistentry>
  49. <term><parameter>--with-rootlibdir=/lib</parameter></term>
  50. <listitem>
  51. <para>This option ensures different library related files are placed
  52. in the correct directories.</para>
  53. </listitem>
  54. </varlistentry>
  55. </variablelist>
  56. <para>Compile the package:</para>
  57. <screen><userinput remap="make">make</userinput></screen>
  58. <para>To test the results, issue:</para>
  59. <screen><userinput remap="test">make check</userinput></screen>
  60. <para>Install the package and man pages, and create symlinks for
  61. compatibility with Module-Init-Tools (the package that previously handled
  62. Linux kernel modules):</para>
  63. <screen><userinput remap="install">make install
  64. for target in depmod insmod modinfo modprobe rmmod; do
  65. ln -sv ../bin/kmod /sbin/$target
  66. done
  67. ln -sv kmod /bin/lsmod</userinput></screen>
  68. </sect2>
  69. <sect2 id="contents-kmod" role="content">
  70. <title>Contents of Kmod</title>
  71. <segmentedlist>
  72. <segtitle>Installed programs</segtitle>
  73. <segtitle>Installed libraries</segtitle>
  74. <seglistitem>
  75. <seg>depmod (link to kmod), insmod (link to kmod), kmod,
  76. lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
  77. and rmmod (link to kmod)</seg>
  78. <seg>libkmod.so</seg>
  79. </seglistitem>
  80. </segmentedlist>
  81. <variablelist>
  82. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  83. <?dbfo list-presentation="list"?>
  84. <?dbhtml list-presentation="table"?>
  85. <varlistentry id="depmod">
  86. <term><command>depmod</command></term>
  87. <listitem>
  88. <para>Creates a dependency file based on the symbols it finds in the
  89. existing set of modules; this dependency file is used by
  90. <command>modprobe</command> to automatically load the required
  91. modules</para>
  92. <indexterm zone="ch-system-kmod depmod">
  93. <primary sortas="b-depmod">depmod</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="insmod">
  98. <term><command>insmod</command></term>
  99. <listitem>
  100. <para>Installs a loadable module in the running kernel</para>
  101. <indexterm zone="ch-system-kmod insmod">
  102. <primary sortas="b-insmod">insmod</primary>
  103. </indexterm>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry id="kmod">
  107. <term><command>kmod</command></term>
  108. <listitem>
  109. <para>Loads and unloads kernel modules</para>
  110. <indexterm zone="ch-system-kmod kmod">
  111. <primary sortas="b-kmod">kmod</primary>
  112. </indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="lsmod">
  116. <term><command>lsmod</command></term>
  117. <listitem>
  118. <para>Lists currently loaded modules</para>
  119. <indexterm zone="ch-system-kmod lsmod">
  120. <primary sortas="b-lsmod">lsmod</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="modinfo">
  125. <term><command>modinfo</command></term>
  126. <listitem>
  127. <para>Examines an object file associated with a kernel module and
  128. displays any information that it can glean</para>
  129. <indexterm zone="ch-system-kmod modinfo">
  130. <primary sortas="b-modinfo">modinfo</primary>
  131. </indexterm>
  132. </listitem>
  133. </varlistentry>
  134. <varlistentry id="modprobe">
  135. <term><command>modprobe</command></term>
  136. <listitem>
  137. <para>Uses a dependency file, created by
  138. <command>depmod</command>, to automatically load relevant modules</para>
  139. <indexterm zone="ch-system-kmod modprobe">
  140. <primary sortas="b-modprobe">modprobe</primary>
  141. </indexterm>
  142. </listitem>
  143. </varlistentry>
  144. <varlistentry id="rmmod">
  145. <term><command>rmmod</command></term>
  146. <listitem>
  147. <para>Unloads modules from the running kernel</para>
  148. <indexterm zone="ch-system-kmod rmmod">
  149. <primary sortas="b-rmmod">rmmod</primary>
  150. </indexterm>
  151. </listitem>
  152. </varlistentry>
  153. <varlistentry id="libkmod">
  154. <term><filename class="libraryfile">libkmod</filename></term>
  155. <listitem>
  156. <para>This library is used by other programs to load and unload kernel
  157. modules</para>
  158. <indexterm zone="ch-system-kmod">
  159. <primary sortas="c-libkmod">libkmod</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  163. </variablelist>
  164. </sect2>
  165. </sect1>