Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6a888b3 authored by Kristen Accardi's avatar Kristen Accardi Committed by Len Brown
Browse files

KEVENT: add new uevent for dock



so that userspace can be notified of dock and undock events.

Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 5e7d8818
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 {
+4 −0
Original line number Diff line number Diff line
@@ -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;
	}