[PATCH] Driver core: add generic "subsystem" link to all devices
Like the SUBSYTEM= key we find in the environment of the uevent, this creates a generic "subsystem" link in sysfs for every device. Userspace usually doesn't care at all if its a "class" or a "bus" device. This provides an unified way to determine the subsytem of a device, regardless of the way the driver core has created it. Signed-off-by:Kay Sievers <kay.sievers@suse.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
- block/genhd.c 2 additions, 5 deletionsblock/genhd.c
- drivers/base/bus.c 2 additions, 0 deletionsdrivers/base/bus.c
- drivers/base/class.c 2 additions, 0 deletionsdrivers/base/class.c
- drivers/base/core.c 7 additions, 2 deletionsdrivers/base/core.c
- fs/partitions/check.c 4 additions, 0 deletionsfs/partitions/check.c
Loading
Please register or sign in to comment