* [patch] add new uevent
@ 2006-05-05 22:13 Kristen Accardi
2006-05-05 22:22 ` Alexey Dobriyan
0 siblings, 1 reply; 4+ messages in thread
From: Kristen Accardi @ 2006-05-05 22:13 UTC (permalink / raw)
To: linux-kernel; +Cc: arjan, greg
Add dock uevents so that userspace can be notified of dock and undock
events.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
---
include/linux/kobject.h | 2 ++
lib/kobject_uevent.c | 4 ++++
2 files changed, 6 insertions(+)
--- 2.6-git-kca2.orig/include/linux/kobject.h
+++ 2.6-git-kca2/include/linux/kobject.h
@@ -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 {
--- 2.6-git-kca2.orig/lib/kobject_uevent.c
+++ 2.6-git-kca2/lib/kobject_uevent.c
@@ -48,6 +48,10 @@ static char *action_to_string(enum kobje
return "offline";
case KOBJ_ONLINE:
return "online";
+ case KOBJ_DOCK:
+ return "dock";
+ case KOBJ_UNDOCK:
+ return "undock";
default:
return NULL;
}
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch] add new uevent
2006-05-05 22:13 [patch] add new uevent Kristen Accardi
@ 2006-05-05 22:22 ` Alexey Dobriyan
2006-05-08 17:24 ` Kristen Accardi
0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2006-05-05 22:22 UTC (permalink / raw)
To: Kristen Accardi; +Cc: linux-kernel, arjan, greg
On Fri, May 05, 2006 at 03:13:36PM -0700, Kristen Accardi wrote:
> Add dock uevents so that userspace can be notified of dock and undock
> events.
> --- 2.6-git-kca2.orig/include/linux/kobject.h
> +++ 2.6-git-kca2/include/linux/kobject.h
> @@ -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 {
> --- 2.6-git-kca2.orig/lib/kobject_uevent.c
> +++ 2.6-git-kca2/lib/kobject_uevent.c
> @@ -48,6 +48,10 @@ static char *action_to_string(enum kobje
> return "offline";
> case KOBJ_ONLINE:
> return "online";
> + case KOBJ_DOCK:
> + return "dock";
> + case KOBJ_UNDOCK:
> + return "undock";
> default:
> return NULL;
> }
Where exactly are you going to generate them?
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch] add new uevent
2006-05-05 22:22 ` Alexey Dobriyan
@ 2006-05-08 17:24 ` Kristen Accardi
2006-05-08 18:01 ` Alexey Dobriyan
0 siblings, 1 reply; 4+ messages in thread
From: Kristen Accardi @ 2006-05-08 17:24 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: linux-kernel, arjan, greg
On Sat, 2006-05-06 at 02:22 +0400, Alexey Dobriyan wrote:
> On Fri, May 05, 2006 at 03:13:36PM -0700, Kristen Accardi wrote:
> > Add dock uevents so that userspace can be notified of dock and undock
> > events.
>
> > --- 2.6-git-kca2.orig/include/linux/kobject.h
> > +++ 2.6-git-kca2/include/linux/kobject.h
> > @@ -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 {
> > --- 2.6-git-kca2.orig/lib/kobject_uevent.c
> > +++ 2.6-git-kca2/lib/kobject_uevent.c
> > @@ -48,6 +48,10 @@ static char *action_to_string(enum kobje
> > return "offline";
> > case KOBJ_ONLINE:
> > return "online";
> > + case KOBJ_DOCK:
> > + return "dock";
> > + case KOBJ_UNDOCK:
> > + return "undock";
> > default:
> > return NULL;
> > }
>
> Where exactly are you going to generate them?
Hi Alexey,
These events will be generated from the dock driver. The patch for this
will be submitted in the next day or 2 (assuming everyone is ok with
adding these events).
Kristen
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch] add new uevent
2006-05-08 17:24 ` Kristen Accardi
@ 2006-05-08 18:01 ` Alexey Dobriyan
0 siblings, 0 replies; 4+ messages in thread
From: Alexey Dobriyan @ 2006-05-08 18:01 UTC (permalink / raw)
To: Kristen Accardi; +Cc: linux-kernel, arjan, greg
On Mon, May 08, 2006 at 10:24:49AM -0700, Kristen Accardi wrote:
> On Sat, 2006-05-06 at 02:22 +0400, Alexey Dobriyan wrote:
> > On Fri, May 05, 2006 at 03:13:36PM -0700, Kristen Accardi wrote:
> > > Add dock uevents so that userspace can be notified of dock and undock
> > > events.
> >
> > > --- 2.6-git-kca2.orig/include/linux/kobject.h
> > > +++ 2.6-git-kca2/include/linux/kobject.h
> > > @@ -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 {
> > > --- 2.6-git-kca2.orig/lib/kobject_uevent.c
> > > +++ 2.6-git-kca2/lib/kobject_uevent.c
> > > @@ -48,6 +48,10 @@ static char *action_to_string(enum kobje
> > > return "offline";
> > > case KOBJ_ONLINE:
> > > return "online";
> > > + case KOBJ_DOCK:
> > > + return "dock";
> > > + case KOBJ_UNDOCK:
> > > + return "undock";
> > > default:
> > > return NULL;
> > > }
> >
> > Where exactly are you going to generate them?
>
> Hi Alexey,
> These events will be generated from the dock driver. The patch for this
> will be submitted in the next day or 2 (assuming everyone is ok with
> adding these events).
Without seeing actual driver it's impossible to say OK or not.
Post the driver when you're ready and make those two chunks a part of whole
patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-08 18:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-05 22:13 [patch] add new uevent Kristen Accardi
2006-05-05 22:22 ` Alexey Dobriyan
2006-05-08 17:24 ` Kristen Accardi
2006-05-08 18:01 ` Alexey Dobriyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.