18c2ecf20Sopenharmony_ciWhat: /sys/dev 28c2ecf20Sopenharmony_ciDate: April 2008 38c2ecf20Sopenharmony_ciKernelVersion: 2.6.26 48c2ecf20Sopenharmony_ciContact: Dan Williams <dan.j.williams@intel.com> 58c2ecf20Sopenharmony_ciDescription: The /sys/dev tree provides a method to look up the sysfs 68c2ecf20Sopenharmony_ci path for a device using the information returned from 78c2ecf20Sopenharmony_ci stat(2). There are two directories, 'block' and 'char', 88c2ecf20Sopenharmony_ci beneath /sys/dev containing symbolic links with names of 98c2ecf20Sopenharmony_ci the form "<major>:<minor>". These links point to the 108c2ecf20Sopenharmony_ci corresponding sysfs path for the given device. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci Example:: 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci $ readlink /sys/dev/block/8:32 158c2ecf20Sopenharmony_ci ../../block/sdc 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci Entries in /sys/dev/char and /sys/dev/block will be 188c2ecf20Sopenharmony_ci dynamically created and destroyed as devices enter and 198c2ecf20Sopenharmony_ci leave the system. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciUsers: mdadm <linux-raid@vger.kernel.org> 22