xref: /linux/Documentation/ABI/testing/sysfs-dev (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1e105b8bfSDan WilliamsWhat:		/sys/dev
2e105b8bfSDan WilliamsDate:		April 2008
3e105b8bfSDan WilliamsKernelVersion:	2.6.26
4e105b8bfSDan WilliamsContact:	Dan Williams <dan.j.williams@intel.com>
5e105b8bfSDan WilliamsDescription:	The /sys/dev tree provides a method to look up the sysfs
6e105b8bfSDan Williams		path for a device using the information returned from
7e105b8bfSDan Williams		stat(2).  There are two directories, 'block' and 'char',
8e105b8bfSDan Williams		beneath /sys/dev containing symbolic links with names of
9e105b8bfSDan Williams		the form "<major>:<minor>".  These links point to the
10e105b8bfSDan Williams		corresponding sysfs path for the given device.
11e105b8bfSDan Williams
12*54a19b4dSMauro Carvalho Chehab		Example::
13*54a19b4dSMauro Carvalho Chehab
14e105b8bfSDan Williams		  $ readlink /sys/dev/block/8:32
15e105b8bfSDan Williams		  ../../block/sdc
16e105b8bfSDan Williams
17e105b8bfSDan Williams		Entries in /sys/dev/char and /sys/dev/block will be
18e105b8bfSDan Williams		dynamically created and destroyed as devices enter and
19e105b8bfSDan Williams		leave the system.
20e105b8bfSDan Williams
21e105b8bfSDan WilliamsUsers:		mdadm <linux-raid@vger.kernel.org>
22