^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config SYSFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) bool "sysfs file system support" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) select KERNFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) The sysfs filesystem is a virtual filesystem that the kernel uses to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) export internal kernel objects, their attributes, and their
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) relationships to one another.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Users can use sysfs to ascertain useful information about the running
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) kernel, such as the devices the kernel has discovered on each bus and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) which driver each is bound to. sysfs can also be used to tune devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) and other kernel subsystems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Some system agents rely on the information in sysfs to operate.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /sbin/hotplug uses device and object attributes in sysfs to assist in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) delegating policy decisions, like persistently naming devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) sysfs is currently used by the block subsystem to mount the root
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) partition. If sysfs is disabled you must specify the boot device on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) the kernel boot command line via its major and minor numbers. For
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) example, "root=03:01" for /dev/hda1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Designers of embedded systems may wish to say N here to conserve space.