All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add KOBJ_ONLINE
@ 2004-11-08 22:56 Keshavamurthy Anil S
  2004-11-12 20:49 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Keshavamurthy Anil S @ 2004-11-08 22:56 UTC (permalink / raw)
  To: linux-hotplug

Hi Greg,
	I am trying to fix the current ACPI container.ko and processor.ko to use kobject_hotplug()
for notification. For this I would be requiring the KOBJ_ONLINE definitions to be added to kobject_action.
I am attaching the patch for the same. Please consider applying.

signed-off-by: Anil Keshavamurty <anil.s.keshavamurthy@intel.com>

---

 linux-2.6.10-rc1-mm3-askeshav/include/linux/kobject_uevent.h |    1 +
 linux-2.6.10-rc1-mm3-askeshav/lib/kobject_uevent.c           |    2 ++
 2 files changed, 3 insertions(+)

diff -puN include/linux/kobject_uevent.h~KOBJ_HOTPLUG include/linux/kobject_uevent.h
--- linux-2.6.10-rc1-mm3/include/linux/kobject_uevent.h~KOBJ_HOTPLUG	2004-11-08 11:42:32.904286429 -0800
+++ linux-2.6.10-rc1-mm3-askeshav/include/linux/kobject_uevent.h	2004-11-08 11:43:29.589832610 -0800
@@ -28,6 +28,7 @@ enum kobject_action {
 	KOBJ_MOUNT	= (__force kobject_action_t) 0x04,	/* mount event for block devices */
 	KOBJ_UMOUNT	= (__force kobject_action_t) 0x05,	/* umount event for block devices */
 	KOBJ_OFFLINE	= (__force kobject_action_t) 0x06,	/* offline event for hotplug devices */
+	KOBJ_ONLINE	= (__force kobject_action_t) 0x07,	/* online event for hotplug devices */
 };
 
 
diff -puN lib/kobject_uevent.c~KOBJ_HOTPLUG lib/kobject_uevent.c
--- linux-2.6.10-rc1-mm3/lib/kobject_uevent.c~KOBJ_HOTPLUG	2004-11-08 11:43:38.768543435 -0800
+++ linux-2.6.10-rc1-mm3-askeshav/lib/kobject_uevent.c	2004-11-08 11:44:07.535144645 -0800
@@ -42,6 +42,8 @@ static char *action_to_string(enum kobje
 		return "umount";
 	case KOBJ_OFFLINE:
 		return "offline";
+	case KOBJ_ONLINE:
+		return "online";
 	default:
 		return NULL;
 	}
_


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add KOBJ_ONLINE
  2004-11-08 22:56 [PATCH] Add KOBJ_ONLINE Keshavamurthy Anil S
@ 2004-11-12 20:49 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-11-12 20:49 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Nov 08, 2004 at 02:56:12PM -0800, Keshavamurthy Anil S wrote:
> Hi Greg,
> 	I am trying to fix the current ACPI container.ko and processor.ko to use kobject_hotplug()
> for notification. For this I would be requiring the KOBJ_ONLINE definitions to be added to kobject_action.
> I am attaching the patch for the same. Please consider applying.
> 
> signed-off-by: Anil Keshavamurty <anil.s.keshavamurthy@intel.com>

Applied, thanks.

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-12 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08 22:56 [PATCH] Add KOBJ_ONLINE Keshavamurthy Anil S
2004-11-12 20:49 ` Greg KH

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.