1 What: /sys/dev 1 What: /sys/dev 2 Date: April 2008 2 Date: April 2008 3 KernelVersion: 2.6.26 3 KernelVersion: 2.6.26 4 Contact: Dan Williams <dan.j.williams@in 4 Contact: Dan Williams <dan.j.williams@intel.com> 5 Description: The /sys/dev tree provides a m 5 Description: The /sys/dev tree provides a method to look up the sysfs 6 path for a device using the in 6 path for a device using the information returned from 7 stat(2). There are two direct 7 stat(2). There are two directories, 'block' and 'char', 8 beneath /sys/dev containing sy 8 beneath /sys/dev containing symbolic links with names of 9 the form "<major>:<minor>". T 9 the form "<major>:<minor>". These links point to the 10 corresponding sysfs path for t 10 corresponding sysfs path for the given device. 11 11 12 Example:: 12 Example:: 13 13 14 $ readlink /sys/dev/block/8: 14 $ readlink /sys/dev/block/8:32 15 ../../block/sdc 15 ../../block/sdc 16 16 17 Entries in /sys/dev/char and / 17 Entries in /sys/dev/char and /sys/dev/block will be 18 dynamically created and destro 18 dynamically created and destroyed as devices enter and 19 leave the system. 19 leave the system. 20 20 21 Users: mdadm <linux-raid@vger.kernel.o 21 Users: mdadm <linux-raid@vger.kernel.org>
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.