KEVENT: add new uevent
Subsystems (3)
PATCH 5/10 KEVENT: add new uevent
From: Kristen Accardi <[email protected]>
Add dock uevents so that userspace can be notified of dock and undock events.
Signed-off-by Kristen Carlson Accardi <[email protected]>
Signed-off-by Greg Kroah-Hartman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/kobject.h | 2 ++ lib/kobject_uevent.c | 4 ++++ 2 files changed, 6 insertions(+)
include/linux/kobject.h renamed from include/linux/kobject.h~kevent-add-new-uevent +2 -0
@@ -46,6 +46,8 @@ enum kobject_action {KOBJ_UMOUNT = (__force kobject_action_t )0x05 ,/* umount event for block devices (broken) */ KOBJ_OFFLINE = (__force kobject_action_t )0x06 ,/* device offline */ KOBJ_ONLINE = (__force kobject_action_t )0x07 ,/* device online */ +KOBJ_UNDOCK = (__force kobject_action_t )0x08 ,/* undocking */ + KOBJ_DOCK = (__force kobject_action_t) 0x09, /* dock */ }; struct kobject {
lib/kobject_uevent.c renamed from lib/kobject_uevent.c~kevent-add-new-uevent +4 -0
@@ -50,6 +50,10 @@ static char *action_to_string(enum kobjereturn "offline" ;case KOBJ_ONLINE :return "online" ; +case KOBJ_DOCK : +return "dock" ; +case KOBJ_UNDOCK : +return "undock" ;default :return NULL ; }
_