summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKristen Accardi <kristen.c.accardi@intel.com>2006-06-24 19:36:00 -0400
committerLen Brown <len.brown@intel.com>2006-06-27 01:24:15 -0400
commita6a888b3c20cf559c8a2e6e4d86c570dda2ef0f5 (patch)
treeeab2875166d1a7fd95a8bb2554f48963a38d06be /lib
parent5e7d8818114f08ad9078d2c1a8a88d78d49de8dc (diff)
downloadblackbird-obmc-linux-a6a888b3c20cf559c8a2e6e4d86c570dda2ef0f5.tar.gz
blackbird-obmc-linux-a6a888b3c20cf559c8a2e6e4d86c570dda2ef0f5.zip
KEVENT: add new uevent for dock
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject_uevent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 7f20e7b857cb..2b1530fc573b 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -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;
}
OpenPOWER on IntegriCloud