]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
docs: filesystems: sysfs: clarify symlink destinations in dev and bus/devices descrip...
authorAlex Tran <alex.t.tran@gmail.com>
Tue, 2 Sep 2025 02:30:38 +0000 (19:30 -0700)
committerJonathan Corbet <corbet@lwn.net>
Thu, 18 Sep 2025 16:33:28 +0000 (10:33 -0600)
Change sysfs bus/devices and dev directory descriptions to
provide more verbose information about the specific symlink
destination the devices point to.

Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20250902023039.1351270-2-alex.t.tran@gmail.com>

Documentation/filesystems/sysfs.rst

index db153cda0786940d4e4327de90c2d612b2f4aa25..f1a776a7ac66bcaeee518f8a2f382561461df4ca 100644 (file)
@@ -312,7 +312,7 @@ kernel. Each bus's directory contains two subdirectories::
        drivers/
 
 devices/ contains symlinks for each device discovered in the system
-that point to the device's directory under root/.
+that point to the device's directory under /sys/devices.
 
 drivers/ contains a directory for each device driver that is loaded
 for devices on that particular bus (this assumes that drivers do not
@@ -327,7 +327,7 @@ loaded system modules, for both builtin and loadable modules.
 
 dev/ contains two directories: char/ and block/. Inside these two
 directories there are symlinks named <major>:<minor>.  These symlinks
-point to the sysfs directory for the given device.  /sys/dev provides a
+point to the directories under /sys/devices for each device.  /sys/dev provides a
 quick way to lookup the sysfs interface for a device from the result of
 a stat(2) operation.