18c2ecf20Sopenharmony_ciWhat: /sys/devices 28c2ecf20Sopenharmony_ciDate: February 2006 38c2ecf20Sopenharmony_ciContact: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci The /sys/devices tree contains a snapshot of the 68c2ecf20Sopenharmony_ci internal state of the kernel device tree. Devices will 78c2ecf20Sopenharmony_ci be added and removed dynamically as the machine runs, 88c2ecf20Sopenharmony_ci and between different kernel versions, the layout of the 98c2ecf20Sopenharmony_ci devices within this tree will change. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci Please do not rely on the format of this tree because of 128c2ecf20Sopenharmony_ci this. If a program wishes to find different things in 138c2ecf20Sopenharmony_ci the tree, please use the /sys/class structure and rely 148c2ecf20Sopenharmony_ci on the symlinks there to point to the proper location 158c2ecf20Sopenharmony_ci within the /sys/devices tree of the individual devices. 168c2ecf20Sopenharmony_ci Or rely on the uevent messages to notify programs of 178c2ecf20Sopenharmony_ci devices being added and removed from this tree to find 188c2ecf20Sopenharmony_ci the location of those devices. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci Note that sometimes not all devices along the directory 218c2ecf20Sopenharmony_ci chain will have emitted uevent messages, so userspace 228c2ecf20Sopenharmony_ci programs must be able to handle such occurrences. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciUsers: 258c2ecf20Sopenharmony_ci udev <linux-hotplug-devel@lists.sourceforge.net> 26