kmod.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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>Apply a patch to fix a testsuite issue on 32-bit machines:</para>
  34. <screen><userinput remap="pre">patch -Np1 -i ../&kmod-test_fix-patch;</userinput></screen>
  35. <para>Prepare Kmod for compilation:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/usr \
  37. --bindir=/bin \
  38. --libdir=/lib \
  39. --sysconfdir=/etc \
  40. --with-xz \
  41. --with-zlib</userinput></screen>
  42. <variablelist>
  43. <title>The meaning of the configure options:</title>
  44. <varlistentry>
  45. <term><parameter>lib* and --with-*</parameter></term>
  46. <listitem>
  47. <para>These options enable Kmod to handle compressed kernel modules.
  48. The shell variables are required in order for the xz and zlib headers
  49. and libraries to be found in the absence of pkg-config.</para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. <para>Compile the package:</para>
  54. <screen><userinput remap="make">make</userinput></screen>
  55. <para>To test the results, issue:</para>
  56. <screen><userinput remap="test">make check</userinput></screen>
  57. <para>Install the package, and create symlinks for compatibility with
  58. Module-Init-Tools, the package that previously handled Linux kernel modules:
  59. </para>
  60. <screen><userinput remap="install">make pkgconfigdir=/usr/lib/pkgconfig install
  61. for target in depmod insmod modinfo modprobe rmmod; do
  62. ln -sv ../bin/kmod /sbin/$target
  63. done
  64. ln -sv kmod /bin/lsmod</userinput></screen>
  65. </sect2>
  66. <sect2 id="contents-kmod" role="content">
  67. <title>Contents of Kmod</title>
  68. <segmentedlist>
  69. <segtitle>Installed programs</segtitle>
  70. <segtitle>Installed libraries</segtitle>
  71. <seglistitem>
  72. <seg>depmod (link to kmod), insmod (link to kmod), kmod, kmod-nolib,
  73. lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
  74. and rmmod (link to kmod)</seg>
  75. <seg>/lib/kmod.so</seg>
  76. </seglistitem>
  77. </segmentedlist>
  78. <variablelist>
  79. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  80. <?dbfo list-presentation="list"?>
  81. <?dbhtml list-presentation="table"?>
  82. <varlistentry id="depmod">
  83. <term><command>depmod</command></term>
  84. <listitem>
  85. <para>Creates a dependency file based on the symbols it finds in the
  86. existing set of modules; this dependency file is used by
  87. <command>modprobe</command> to automatically load the required
  88. modules</para>
  89. <indexterm zone="ch-system-kmod depmod">
  90. <primary sortas="b-depmod">depmod</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="insmod">
  95. <term><command>insmod</command></term>
  96. <listitem>
  97. <para>Installs a loadable module in the running kernel</para>
  98. <indexterm zone="ch-system-kmod insmod">
  99. <primary sortas="b-insmod">insmod</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="kmod">
  104. <term><command>kmod</command></term>
  105. <listitem>
  106. <para>Loads and unloads kernel modules</para>
  107. <indexterm zone="ch-system-kmod kmod">
  108. <primary sortas="b-kmod">kmod</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="libkmod">
  113. <term><filename class="libraryfile">libkmod</filename></term>
  114. <listitem>
  115. <para>This library is used by other programs to load and unload kernel
  116. modules</para>
  117. <indexterm zone="ch-system-kmod">
  118. <primary sortas="c-libkmod">libkmod</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="lsmod">
  123. <term><command>lsmod</command></term>
  124. <listitem>
  125. <para>Lists currently loaded modules</para>
  126. <indexterm zone="ch-system-kmod lsmod">
  127. <primary sortas="b-lsmod">lsmod</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="modinfo">
  132. <term><command>modinfo</command></term>
  133. <listitem>
  134. <para>Examines an object file associated with a kernel module and
  135. displays any information that it can glean</para>
  136. <indexterm zone="ch-system-kmod modinfo">
  137. <primary sortas="b-modinfo">modinfo</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="modprobe">
  142. <term><command>modprobe</command></term>
  143. <listitem>
  144. <para>Uses a dependency file, created by
  145. <command>depmod</command>, to automatically load relevant modules</para>
  146. <indexterm zone="ch-system-kmod modprobe">
  147. <primary sortas="b-modprobe">modprobe</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="rmmod">
  152. <term><command>rmmod</command></term>
  153. <listitem>
  154. <para>Unloads modules from the running kernel</para>
  155. <indexterm zone="ch-system-kmod rmmod">
  156. <primary sortas="b-rmmod">rmmod</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. </variablelist>
  161. </sect2>
  162. </sect1>