]> git.baikalelectronics.ru Git - kernel.git/commit
driver-core: implement 'sysdev' functionality for regular devices and buses
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 14 Dec 2011 22:29:38 +0000 (14:29 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2011 22:29:38 +0000 (14:29 -0800)
commit5557f6a833cd6b37fbab2dc4fd0117cb4ccfa2a5
treebb2da058ddc05f8cde1161a60f7fdce9620c63ff
parent8f5c0b8bca31ec459d6e094431bcd7adb4021ce8
driver-core: implement 'sysdev' functionality for regular devices and buses

All sysdev classes and sysdev devices will converted to regular devices
and buses to properly hook userspace into the event processing.

There is no interesting difference between a 'sysdev' and 'device' which
would justify to roll an entire own subsystem with different userspace
export semantics. Userspace relies on events and generic sysfs subsystem
infrastructure from sysdev devices, which are currently not properly
available.

Every converted sysdev class will create a regular device with the class
name in /sys/devices/system and all registered devices will becom a children
of theses devices.

For compatibility reasons, the sysdev class-wide attributes are created
at this parent device. (Do not copy that logic for anything new, subsystem-
wide properties belong to the subsystem, not to some fake parent device
created in /sys/devices.)

Every sysdev driver is implemented as a simple subsystem interface now,
and no longer called a driver.

After all sysdev classes are ported to regular driver core entities, the
sysdev implementation will be entirely removed from the kernel.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/base.h
drivers/base/bus.c
drivers/base/class.c
drivers/base/core.c
drivers/base/init.c
drivers/base/sys.c
include/linux/device.h