kmod.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. --disable-manpages \
  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-*</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>--disable-manpages</parameter></term>
  50. <listitem>
  51. <para>This option prevents the man pages from being built, as they
  52. rely on libxslt, which isn't available in the chroot
  53. environment.</para>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Compile the package:</para>
  58. <screen><userinput remap="make">make</userinput></screen>
  59. <para>To test the results, issue:</para>
  60. <screen><userinput remap="test">make check</userinput></screen>
  61. <para>Install the package, and create symlinks for compatibility with
  62. Module-Init-Tools, the package that previously handled Linux kernel modules.
  63. Also make sure that all libraries are in the correct directory:
  64. </para>
  65. <screen><userinput remap="install">make install
  66. for target in depmod insmod modinfo modprobe rmmod; do
  67. ln -sv ../bin/kmod /sbin/$target
  68. done
  69. ln -sv kmod /bin/lsmod</userinput></screen>
  70. <para> Make sure that all libraries are in the correct directory: </para>
  71. <screen><userinput remap="install">mv -v /usr/lib/libkmod.so.* /lib
  72. ln -svf ../../lib/$(readlink /usr/lib/libkmod.so) /usr/lib/libkmod.so</userinput></screen>
  73. </sect2>
  74. <sect2 id="contents-kmod" role="content">
  75. <title>Contents of Kmod</title>
  76. <segmentedlist>
  77. <segtitle>Installed programs</segtitle>
  78. <segtitle>Installed libraries</segtitle>
  79. <seglistitem>
  80. <seg>depmod (link to kmod), insmod (link to kmod), kmod,
  81. lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
  82. and rmmod (link to kmod)</seg>
  83. <seg>/lib/kmod.so</seg>
  84. </seglistitem>
  85. </segmentedlist>
  86. <variablelist>
  87. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  88. <?dbfo list-presentation="list"?>
  89. <?dbhtml list-presentation="table"?>
  90. <varlistentry id="depmod">
  91. <term><command>depmod</command></term>
  92. <listitem>
  93. <para>Creates a dependency file based on the symbols it finds in the
  94. existing set of modules; this dependency file is used by
  95. <command>modprobe</command> to automatically load the required
  96. modules</para>
  97. <indexterm zone="ch-system-kmod depmod">
  98. <primary sortas="b-depmod">depmod</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="insmod">
  103. <term><command>insmod</command></term>
  104. <listitem>
  105. <para>Installs a loadable module in the running kernel</para>
  106. <indexterm zone="ch-system-kmod insmod">
  107. <primary sortas="b-insmod">insmod</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="kmod">
  112. <term><command>kmod</command></term>
  113. <listitem>
  114. <para>Loads and unloads kernel modules</para>
  115. <indexterm zone="ch-system-kmod kmod">
  116. <primary sortas="b-kmod">kmod</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="libkmod">
  121. <term><filename class="libraryfile">libkmod</filename></term>
  122. <listitem>
  123. <para>This library is used by other programs to load and unload kernel
  124. modules</para>
  125. <indexterm zone="ch-system-kmod">
  126. <primary sortas="c-libkmod">libkmod</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="lsmod">
  131. <term><command>lsmod</command></term>
  132. <listitem>
  133. <para>Lists currently loaded modules</para>
  134. <indexterm zone="ch-system-kmod lsmod">
  135. <primary sortas="b-lsmod">lsmod</primary>
  136. </indexterm>
  137. </listitem>
  138. </varlistentry>
  139. <varlistentry id="modinfo">
  140. <term><command>modinfo</command></term>
  141. <listitem>
  142. <para>Examines an object file associated with a kernel module and
  143. displays any information that it can glean</para>
  144. <indexterm zone="ch-system-kmod modinfo">
  145. <primary sortas="b-modinfo">modinfo</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="modprobe">
  150. <term><command>modprobe</command></term>
  151. <listitem>
  152. <para>Uses a dependency file, created by
  153. <command>depmod</command>, to automatically load relevant modules</para>
  154. <indexterm zone="ch-system-kmod modprobe">
  155. <primary sortas="b-modprobe">modprobe</primary>
  156. </indexterm>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="rmmod">
  160. <term><command>rmmod</command></term>
  161. <listitem>
  162. <para>Unloads modules from the running kernel</para>
  163. <indexterm zone="ch-system-kmod rmmod">
  164. <primary sortas="b-rmmod">rmmod</primary>
  165. </indexterm>
  166. </listitem>
  167. </varlistentry>
  168. </variablelist>
  169. </sect2>
  170. </sect1>