Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/dev
0002 Date:           April 2008
0003 KernelVersion:  2.6.26
0004 Contact:        Dan Williams <dan.j.williams@intel.com>
0005 Description:    The /sys/dev tree provides a method to look up the sysfs
0006                 path for a device using the information returned from
0007                 stat(2).  There are two directories, 'block' and 'char',
0008                 beneath /sys/dev containing symbolic links with names of
0009                 the form "<major>:<minor>".  These links point to the
0010                 corresponding sysfs path for the given device.
0011 
0012                 Example::
0013 
0014                   $ readlink /sys/dev/block/8:32
0015                   ../../block/sdc
0016 
0017                 Entries in /sys/dev/char and /sys/dev/block will be
0018                 dynamically created and destroyed as devices enter and
0019                 leave the system.
0020 
0021 Users:          mdadm <linux-raid@vger.kernel.org>