udev.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-udev" role="wrap">
  9. <title>Udev-&udev-version;</title>
  10. <?dbhtml filename="udev.html"?>
  11. <indexterm zone="ch-system-udev"><primary sortas="a-Udev">Udev</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Udev package contains programs for dynamic creation of device nodes.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.1 SBU</seg><seg>3.8 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>&dependencies;</segtitle>
  21. <seglistitem><seg>Coreutils and Make</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Udev</title>
  26. <para>Fix an incorrect assumption in the Udev testsuite regarding the location
  27. of the <command>test</command> binary:</para>
  28. <screen><userinput>sed -i -e 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
  29. <para>Compile the package:</para>
  30. <screen><userinput>make udevdir=/dev</userinput></screen>
  31. <variablelist>
  32. <varlistentry>
  33. <term><parameter>udevdir=/dev</parameter></term>
  34. <listitem><para>This tells <command>udev</command> in which directory
  35. devices nodes are to be created.</para></listitem>
  36. </varlistentry>
  37. </variablelist>
  38. <para>To test the results, issue:
  39. <userinput>make test</userinput>.</para>
  40. <para>Install the package:</para>
  41. <screen><userinput>make udevdir=/dev install</userinput></screen>
  42. <para>Udev's configuration is far from ideal by default, so install
  43. the configuration files here:</para>
  44. <screen><userinput>cp ../udev-config-3.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
  45. <!-- Edit Me -->
  46. <para>Run the <command>udevstart</command> program to create our full
  47. complement of device nodes.</para>
  48. <screen><userinput>/sbin/udevstart</userinput></screen>
  49. </sect2>
  50. <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
  51. <segmentedlist>
  52. <segtitle>Installed programs</segtitle>
  53. <segtitle>Installed directory</segtitle>
  54. <seglistitem><seg>udev, udevcontrol, udevd, udevinfo, udevmonitor, udevsend, udevstart and udevtest</seg>
  55. <seg>/etc/udev</seg></seglistitem>
  56. </segmentedlist>
  57. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="udev">
  61. <term><command>udev</command></term>
  62. <listitem>
  63. <para>Creates device nodes in <filename
  64. class="directory">/dev</filename> or renames network interfaces (not
  65. in LFS) in response to hotplug events</para>
  66. <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
  67. </listitem></varlistentry>
  68. <varlistentry id="udevcontrol">
  69. <term><command>udevcontrol</command></term>
  70. <listitem>
  71. <para>Configures a number of options for the running <command>udevd</command>
  72. daemon, such as the log level.</para>
  73. <indexterm zone="ch-system-udev udevcontrol"><primary sortas="b-udevcontrol">udevcontrol</primary>
  74. </indexterm>
  75. </listitem></varlistentry>
  76. <varlistentry id="udevd">
  77. <term><command>udevd</command></term>
  78. <listitem>
  79. <para>A daemon that reorders hotplug events before submitting them to
  80. <command>udev</command>,
  81. thus avoiding various race conditions</para>
  82. <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
  83. </listitem></varlistentry>
  84. <varlistentry id="udevinfo">
  85. <term><command>udevinfo</command></term>
  86. <listitem>
  87. <para>Allows users to query the <command>udev</command> database for
  88. information on any device currently present on the system; it also
  89. provides a way to query any device in the <systemitem
  90. class="filesystem">sysfs</systemitem> tree to help create udev
  91. rules</para>
  92. <indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
  93. </listitem></varlistentry>
  94. <varlistentry id="udevmonitor">
  95. <term><command>udevmonitor</command></term>
  96. <listitem>
  97. <para>Prints the event received from the kernel and the event which
  98. <command>udev</command> sends out after rule processing</para>
  99. <indexterm zone="ch-system-udev udevmonitor"><primary sortas="b-udevmonitor">udevmonitor</primary>
  100. </indexterm>
  101. </listitem></varlistentry>
  102. <varlistentry id="udevsend">
  103. <term><command>udevsend</command></term>
  104. <listitem>
  105. <para>Delivers hotplug events to <command>udevd</command></para>
  106. <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
  107. </listitem></varlistentry>
  108. <varlistentry id="udevstart">
  109. <term><command>udevstart</command></term>
  110. <listitem>
  111. <para>Creates device nodes in <filename
  112. class="directory">/dev</filename> that correspond to drivers compiled directly
  113. into the kernel; it performs that task by simulating hotplug events presumably
  114. dropped by the kernel before invocation of this program (e.g., because the root
  115. filesystem has not been mounted) and submitting such synthetic hotplug events
  116. to <command>udev</command></para>
  117. <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="udevtest">
  121. <term><command>udevtest</command></term>
  122. <listitem>
  123. <para>Simulates a <command>udev</command> run for the given device,
  124. and prints out the name of the node the real <command>udev</command> would
  125. have created or (not in LFS) the name of the renamed network interface</para>
  126. <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
  127. </listitem></varlistentry>
  128. <varlistentry id="etc-udev">
  129. <term><filename class="directory">/etc/udev</filename></term>
  130. <listitem>
  131. <para>Contains <command>udev</command> configuation files,
  132. device permissions, and rules for device naming</para>
  133. <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
  134. </listitem></varlistentry>
  135. </variablelist>
  136. </sect2>
  137. </sect1>