kmod.xml 6.3 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-fin-sbu;</seg>
  27. <seg>&kmod-fin-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>This package does not come with a test suite that can be run in the
  59. LFS chroot environment. At a minimum the git program is required and
  60. several tests will not run outside of a git repository. </para>
  61. <para>Install the package and create symlinks for
  62. compatibility with Module-Init-Tools (the package that previously handled
  63. Linux kernel modules):</para>
  64. <screen><userinput remap="install">make install
  65. for target in depmod insmod lsmod modinfo modprobe rmmod; do
  66. ln -sfv ../bin/kmod /sbin/$target
  67. done
  68. ln -sfv kmod /bin/lsmod</userinput></screen>
  69. </sect2>
  70. <sect2 id="contents-kmod" role="content">
  71. <title>Contents of Kmod</title>
  72. <segmentedlist>
  73. <segtitle>Installed programs</segtitle>
  74. <segtitle>Installed library</segtitle>
  75. <seglistitem>
  76. <seg>depmod (link to kmod), insmod (link to kmod), kmod,
  77. lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
  78. and rmmod (link to kmod)</seg>
  79. <seg>libkmod.so</seg>
  80. </seglistitem>
  81. </segmentedlist>
  82. <variablelist>
  83. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  84. <?dbfo list-presentation="list"?>
  85. <?dbhtml list-presentation="table"?>
  86. <varlistentry id="depmod">
  87. <term><command>depmod</command></term>
  88. <listitem>
  89. <para>Creates a dependency file based on the symbols it finds in the
  90. existing set of modules; this dependency file is used by
  91. <command>modprobe</command> to automatically load the required
  92. modules</para>
  93. <indexterm zone="ch-system-kmod depmod">
  94. <primary sortas="b-depmod">depmod</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="insmod">
  99. <term><command>insmod</command></term>
  100. <listitem>
  101. <para>Installs a loadable module in the running kernel</para>
  102. <indexterm zone="ch-system-kmod insmod">
  103. <primary sortas="b-insmod">insmod</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="kmod">
  108. <term><command>kmod</command></term>
  109. <listitem>
  110. <para>Loads and unloads kernel modules</para>
  111. <indexterm zone="ch-system-kmod kmod">
  112. <primary sortas="b-kmod">kmod</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="lsmod">
  117. <term><command>lsmod</command></term>
  118. <listitem>
  119. <para>Lists currently loaded modules</para>
  120. <indexterm zone="ch-system-kmod lsmod">
  121. <primary sortas="b-lsmod">lsmod</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="modinfo">
  126. <term><command>modinfo</command></term>
  127. <listitem>
  128. <para>Examines an object file associated with a kernel module and
  129. displays any information that it can glean</para>
  130. <indexterm zone="ch-system-kmod modinfo">
  131. <primary sortas="b-modinfo">modinfo</primary>
  132. </indexterm>
  133. </listitem>
  134. </varlistentry>
  135. <varlistentry id="modprobe">
  136. <term><command>modprobe</command></term>
  137. <listitem>
  138. <para>Uses a dependency file, created by
  139. <command>depmod</command>, to automatically load relevant modules</para>
  140. <indexterm zone="ch-system-kmod modprobe">
  141. <primary sortas="b-modprobe">modprobe</primary>
  142. </indexterm>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="rmmod">
  146. <term><command>rmmod</command></term>
  147. <listitem>
  148. <para>Unloads modules from the running kernel</para>
  149. <indexterm zone="ch-system-kmod rmmod">
  150. <primary sortas="b-rmmod">rmmod</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. <varlistentry id="libkmod">
  155. <term><filename class="libraryfile">libkmod</filename></term>
  156. <listitem>
  157. <para>This library is used by other programs to load and unload kernel
  158. modules</para>
  159. <indexterm zone="ch-system-kmod">
  160. <primary sortas="c-libkmod">libkmod</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. </variablelist>
  165. </sect2>
  166. </sect1>