1
0

kmod.xml 6.3 KB

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