Changeset a3d0817 for chapter09/udev.xml


Ignore:
Timestamp:
06/12/2020 08:42:32 PM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
9e7475a
Parents:
96f04d7
Message:

Text updated for cross2 chapter 9

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11928 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter09/udev.xml

    r96f04d7 ra3d0817  
    1616  </indexterm>
    1717
    18   <para>In <xref linkend="chapter-building-system"/>, we installed the Udev
     18  <para>In <xref linkend="chapter-building-system"/>, we installed the udev
    1919  package when <phrase revision="sysv">eudev</phrase>
    2020  <phrase revision="systemd">systemd</phrase> was built. Before we go into the
     
    3131  the world.</para>
    3232
    33   <para>Using the Udev method, only those devices which are detected by the
     33  <para>Using the udev method, only those devices which are detected by the
    3434  kernel get device nodes created for them. Because these device nodes will be
    3535  created each time the system boots, they will be stored on a <systemitem
     
    136136      might contain the string
    137137      <quote>pci:v00001319d00000801sv00001319sd00001319bc04sc01i00</quote>.
    138       The default rules provided with Udev will cause <command>udevd</command>
     138      The default rules provided with udev will cause <command>udevd</command>
    139139      to call out to <command>/sbin/modprobe</command> with the contents of the
    140140      <envar>MODALIAS</envar> uevent environment variable (which should be the
     
    150150
    151151      <para>The kernel itself is also able to load modules for network
    152       protocols, filesystems and NLS support on demand.</para>
     152      protocols, filesystems, and NLS support on demand.</para>
    153153
    154154    </sect3>
     
    178178      bus driver properly exports the necessary aliases to <systemitem
    179179      class="filesystem">sysfs</systemitem>. In other cases, one should
    180       arrange module loading by other means. With Linux-&linux-version;, Udev is
     180      arrange module loading by other means. With Linux-&linux-version;, udev is
    181181      known to load properly-written drivers for INPUT, IDE, PCI, USB, SCSI,
    182182      SERIO, and FireWire devices.</para>
    183183
    184184      <para>To determine if the device driver you require has the necessary
    185       support for Udev, run <command>modinfo</command> with the module name as
     185      support for udev, run <command>modinfo</command> with the module name as
    186186      the argument.  Now try locating the device directory under
    187187      <filename class="directory">/sys/bus</filename> and check whether there is
     
    191191      class="filesystem">sysfs</systemitem>, the driver supports the device and
    192192      can talk to it directly, but doesn't have the alias, it is a bug in the
    193       driver. Load the driver without the help from Udev and expect the issue
     193      driver. Load the driver without the help from udev and expect the issue
    194194      to be fixed later.</para>
    195195
     
    207207
    208208    <sect3>
    209       <title>A kernel module is not loaded automatically, and Udev is not
     209      <title>A kernel module is not loaded automatically, and udev is not
    210210      intended to load it</title>
    211211
     
    215215      <emphasis>snd-pcm</emphasis> by making the sound cards available to OSS
    216216      applications), configure <command>modprobe</command> to load the wrapper
    217       after Udev loads the wrapped module. To do this, add a
     217      after udev loads the wrapped module. To do this, add a
    218218      <quote>softdep</quote> line to the corresponding
    219219      <filename>/etc/modprobe.d/<replaceable>&lt;filename&gt;</replaceable>.conf</filename>
     
    280280      <para>Further text assumes that the driver is built statically into the
    281281      kernel or already loaded as a module, and that you have already checked
    282       that Udev doesn't create a misnamed device.</para>
     282      that udev doesn't create a misnamed device.</para>
    283283
    284284      <para>Udev has no information needed to create a device node if a kernel
     
    298298      <title>Device naming order changes randomly after rebooting</title>
    299299
    300       <para>This is due to the fact that Udev, by design, handles uevents and
     300      <para>This is due to the fact that udev, by design, handles uevents and
    301301      loads modules in parallel, and thus in an unpredictable order. This will
    302302      never be <quote>fixed</quote>. You should not rely upon the kernel device
    303303      names being stable. Instead, create your own rules that make symlinks with
    304304      stable names based on some stable attributes of the device, such as a
    305       serial number or the output of various *_id utilities installed by Udev.
     305      serial number or the output of various *_id utilities installed by udev.
    306306      See <xref linkend="ch-config-symlinks"/> and
    307307      <xref linkend="ch-config-network"/> for examples.</para>
Note: See TracChangeset for help on using the changeset viewer.