Skip to contentSkip to conversation

Add KOBJ_ONLINE

PATCH Applied Keshavamurthy Anil S 2 participants 2 messages Nov 8, 2004 – Nov 12, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add KOBJ_ONLINE

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.

---

 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(+)
include/linux/kobject_uevent.h renamed from include/linux/kobject_uevent.h~KOBJ_HOTPLUG +1 -0
diff -puN include/linux/kobject_uevent.h~KOBJ_HOTPLUG include/linux/kobject_uevent.h
@@ -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 */
 };
 
 
lib/kobject_uevent.c renamed from lib/kobject_uevent.c~KOBJ_HOTPLUG +2 -0
diff -puN lib/kobject_uevent.c~KOBJ_HOTPLUG lib/kobject_uevent.c
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Applied
#1 lore raw
Quoted 6 lines · Keshavamurthy Anil S

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.

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_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel