linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Keshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Add KOBJ_ONLINE
Date: Mon, 08 Nov 2004 22:56:12 +0000	[thread overview]
Message-ID: <20041108145612.A24251@unix-os.sc.intel.com> (raw)

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

             reply	other threads:[~2004-11-08 22:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08 22:56 Keshavamurthy Anil S [this message]
2004-11-12 20:49 ` [PATCH] Add KOBJ_ONLINE Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041108145612.A24251@unix-os.sc.intel.com \
    --to=anil.s.keshavamurthy@intel.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).