Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: filesystems: sysfs: clarify symlink destinations in dev and bus/devices descriptions

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>

authored by

Alex Tran and committed by
Jonathan Corbet
63e6e9dd a1d4416f

+2 -2
+2 -2
Documentation/filesystems/sysfs.rst
··· 312 312 drivers/ 313 313 314 314 devices/ contains symlinks for each device discovered in the system 315 - that point to the device's directory under root/. 315 + that point to the device's directory under /sys/devices. 316 316 317 317 drivers/ contains a directory for each device driver that is loaded 318 318 for devices on that particular bus (this assumes that drivers do not ··· 327 327 328 328 dev/ contains two directories: char/ and block/. Inside these two 329 329 directories there are symlinks named <major>:<minor>. These symlinks 330 - point to the sysfs directory for the given device. /sys/dev provides a 330 + point to the directories under /sys/devices for each device. /sys/dev provides a 331 331 quick way to lookup the sysfs interface for a device from the result of 332 332 a stat(2) operation. 333 333