1*e105b8bfSDan WilliamsWhat: /sys/dev 2*e105b8bfSDan WilliamsDate: April 2008 3*e105b8bfSDan WilliamsKernelVersion: 2.6.26 4*e105b8bfSDan WilliamsContact: Dan Williams <[email protected]> 5*e105b8bfSDan WilliamsDescription: The /sys/dev tree provides a method to look up the sysfs 6*e105b8bfSDan Williams path for a device using the information returned from 7*e105b8bfSDan Williams stat(2). There are two directories, 'block' and 'char', 8*e105b8bfSDan Williams beneath /sys/dev containing symbolic links with names of 9*e105b8bfSDan Williams the form "<major>:<minor>". These links point to the 10*e105b8bfSDan Williams corresponding sysfs path for the given device. 11*e105b8bfSDan Williams 12*e105b8bfSDan Williams Example: 13*e105b8bfSDan Williams $ readlink /sys/dev/block/8:32 14*e105b8bfSDan Williams ../../block/sdc 15*e105b8bfSDan Williams 16*e105b8bfSDan Williams Entries in /sys/dev/char and /sys/dev/block will be 17*e105b8bfSDan Williams dynamically created and destroyed as devices enter and 18*e105b8bfSDan Williams leave the system. 19*e105b8bfSDan Williams 20*e105b8bfSDan WilliamsUsers: mdadm <[email protected]> 21