^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/dev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: Dan Williams <dan.j.williams@intel.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description: The /sys/dev tree provides a method to look up the sysfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) path for a device using the information returned from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) stat(2). There are two directories, 'block' and 'char',
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) beneath /sys/dev containing symbolic links with names of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) the form "<major>:<minor>". These links point to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) corresponding sysfs path for the given device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Example::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) $ readlink /sys/dev/block/8:32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) ../../block/sdc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Entries in /sys/dev/char and /sys/dev/block will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) dynamically created and destroyed as devices enter and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) leave the system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Users: mdadm <linux-raid@vger.kernel.org>