From: Keshavamurthy Anil S Date: Mon, 08 Nov 2004 22:56:12 +0000 Subject: [PATCH] Add KOBJ_ONLINE Message-Id: <20041108145612.A24251@unix-os.sc.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 --- 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_id065&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