]> err.no Git - linux-2.6/commitdiff
KEVENT: add new uevent for dock
authorKristen Accardi <kristen.c.accardi@intel.com>
Sat, 24 Jun 2006 23:36:00 +0000 (19:36 -0400)
committerLen Brown <len.brown@intel.com>
Tue, 27 Jun 2006 05:24:15 +0000 (01:24 -0400)
so that userspace can be notified of dock and undock events.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
include/linux/kobject.h
lib/kobject_uevent.c

index 2d229327959ed9809042af03c8fdb917913e000e..0503b2ed8bae8ae4e2fb89f01df052e5cebe3497 100644 (file)
@@ -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 {
index 7f20e7b857cb559b7624d89ca4c52bbf86bc1b65..2b1530fc573bfaa4af0c7288eba1fce7af51513f 100644 (file)
@@ -50,6 +50,10 @@ static char *action_to_string(enum kobject_action action)
                return "offline";
        case KOBJ_ONLINE:
                return "online";
+       case KOBJ_DOCK:
+               return "dock";
+       case KOBJ_UNDOCK:
+               return "undock";
        default:
                return NULL;
        }