eudev.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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-eudev" role="wrap">
  8. <?dbhtml filename="eudev.html"?>
  9. <sect1info condition="script">
  10. <productname>eudev</productname>
  11. <productnumber>&eudev-version;</productnumber>
  12. <address>&eudev-url;</address>
  13. </sect1info>
  14. <title>Eudev-&eudev-version;</title>
  15. <indexterm zone="ch-system-eudev">
  16. <primary sortas="a-Eudev">Eudev</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Eudev package contains programs for dynamic creation of device
  21. nodes.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&eudev-ch6-sbu;</seg>
  27. <seg>&eudev-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Eudev</title>
  33. <para>First, clean up a few warnings and fix a test script:</para>
  34. <screen><userinput remap="pre">sed -i '/struct ucred/i struct ucred;' src/libudev/util.h
  35. sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
  36. <para>Prepare Eudev for compilation:</para>
  37. <screen><userinput remap="configure">BLKID_CFLAGS=-I/tools/include \
  38. BLKID_LIBS='-L/tools/lib -lblkid' \
  39. ./configure --prefix=/usr \
  40. --bindir=/sbin \
  41. --sbindir=/sbin \
  42. --libdir=/usr/lib \
  43. --sysconfdir=/etc \
  44. --libexecdir=/lib \
  45. --with-rootprefix= \
  46. --with-rootlibdir=/lib \
  47. --enable-split-usr \
  48. --enable-libkmod \
  49. --enable-rule_generator \
  50. --disable-introspection \
  51. --disable-keymap \
  52. --disable-gudev \
  53. --disable-gtk-doc-html \
  54. --with-firmware-path=/lib/firmware </userinput></screen>
  55. <para>Compile the package:</para>
  56. <screen><userinput remap="make">make</userinput></screen>
  57. <para>Create some directories now that are needed for tests, but
  58. will also be used as a part of installation:</para>
  59. <screen><userinput remap="install">mkdir -pv /lib/{firmware,udev/devices/pts}
  60. mkdir -pv /lib/firmware
  61. mkdir -pv /lib/udev/rules.d
  62. mkdir -pv /etc/udev/rules.d</userinput></screen>
  63. <para>To test the results, run issue:</para>
  64. <screen><userinput remap="test">make check</userinput></screen>
  65. <para>Install the package:</para>
  66. <screen><userinput remap="install">make install</userinput></screen>
  67. <para>Finally, install the man pages:</para>
  68. <screen><userinput remap="install">tar -xvf ../eudev-1.5.1-manpages.tar.bz2 -C /usr/share</userinput></screen>
  69. </sect2>
  70. <sect2 id="contents-eudev" role="content">
  71. <title>Contents of Eudev</title>
  72. <segmentedlist>
  73. <segtitle>Installed programs</segtitle>
  74. <segtitle>Installed libraries</segtitle>
  75. <segtitle>Installed directories</segtitle>
  76. <seglistitem>
  77. <seg><!-- These are in /lib/udev and not to be called by the user:
  78. accelerometer, ata_id, cdrom_id, collect, mtd_probe,
  79. scsi_id, v4l_id,--> udevadm and udevd</seg>
  80. <seg>libudev.so</seg>
  81. <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
  82. </seglistitem>
  83. </segmentedlist>
  84. <variablelist>
  85. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  86. <?dbfo list-presentation="list"?>
  87. <?dbhtml list-presentation="table"?>
  88. <!--
  89. <varlistentry id="ata_id">
  90. <term><command>ata_id</command></term>
  91. <listitem>
  92. <para>Provides Udev with a unique string and
  93. additional information (uuid, label) for an ATA drive</para>
  94. <indexterm zone="ch-system-eudev ata_id">
  95. <primary sortas="b-ata_id">ata_id</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="cdrom_id">
  100. <term><command>cdrom_id</command></term>
  101. <listitem>
  102. <para>Provides Udev with the capabilities of a
  103. CD-ROM or DVD-ROM drive</para>
  104. <indexterm zone="ch-system-eudev cdrom_id">
  105. <primary sortas="b-cdrom_id">cdrom_id</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry id="collect">
  110. <term><command>collect</command></term>
  111. <listitem>
  112. <para>Given an ID for the current uevent and a list of
  113. IDs (for all target uevents), registers the current ID
  114. and indicates whether all target IDs have been registered</para>
  115. <indexterm zone="ch-system-eudev collect">
  116. <primary sortas="b-collect">collect</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="scsi_id">
  121. <term><command>scsi_id</command></term>
  122. <listitem>
  123. <para>Provides Udev with a unique SCSI identifier
  124. based on the data returned from sending a SCSI INQUIRY command to
  125. the specified device</para>
  126. <indexterm zone="ch-system-eudev scsi_id">
  127. <primary sortas="b-scsi_id">scsi_id</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. -->
  132. <varlistentry id="udevadm">
  133. <term><command>udevadm</command></term>
  134. <listitem>
  135. <para>Generic udev administration tool: controls the udevd daemon,
  136. provides info from the Udev database, monitors uevents, waits for
  137. uevents to finish, tests Udev configuration, and triggers uevents
  138. for a given device</para>
  139. <indexterm zone="ch-system-eudev udevadm">
  140. <primary sortas="b-udevadm">udevadm</primary>
  141. </indexterm>
  142. </listitem>
  143. </varlistentry>
  144. <varlistentry id="udevd">
  145. <term><command>udevd</command></term>
  146. <listitem>
  147. <para>A daemon that listens for uevents on the netlink socket,
  148. creates devices and runs the configured external programs in
  149. response to these uevents</para>
  150. <indexterm zone="ch-system-eudev udevd">
  151. <primary sortas="b-udevd">udevd</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="libudev">
  156. <term><filename class="libraryfile">libudev</filename></term>
  157. <listitem>
  158. <para>A library interface to udev device information</para>
  159. <indexterm zone="ch-system-eudev libudev">
  160. <primary sortas="c-libudev">libudev</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="etc-udev">
  165. <term><filename class="directory">/etc/udev</filename></term>
  166. <listitem>
  167. <para>Contains Udev configuration files,
  168. device permissions, and rules for device naming</para>
  169. <indexterm zone="ch-system-eudev etc-udev">
  170. <primary sortas="e-/etc/udev">/etc/udev</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. </variablelist>
  175. </sect2>
  176. </sect1>