^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: February 2006
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) The /sys/devices tree contains a snapshot of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) internal state of the kernel device tree. Devices will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) be added and removed dynamically as the machine runs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) and between different kernel versions, the layout of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) devices within this tree will change.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Please do not rely on the format of this tree because of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) this. If a program wishes to find different things in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) the tree, please use the /sys/class structure and rely
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) on the symlinks there to point to the proper location
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) within the /sys/devices tree of the individual devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Or rely on the uevent messages to notify programs of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) devices being added and removed from this tree to find
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) the location of those devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Note that sometimes not all devices along the directory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) chain will have emitted uevent messages, so userspace
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) programs must be able to handle such occurrences.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Users:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) udev <linux-hotplug-devel@lists.sourceforge.net>