From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: Re: 2.6.10-rc1-mm3: ACPI problem due to un-exported hotplug_path Date: Tue, 9 Nov 2004 18:48:17 -0500 Message-ID: References: <20041105001328.3ba97e08.akpm@osdl.org> <20041105164523.GC1295@stusta.de> <20041105180513.GA32007@kroah.com> <20041105201012.GA24063@vrfy.org> <20041105204209.GA1204@kroah.com> <20041105211848.A21098@unix-os.sc.intel.com> <20041109225502.GC7618@kroah.com> Reply-To: dtor_core-yWtbtysYrB+LZ21kGMrzwg@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20041109225502.GC7618-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Greg KH Cc: Keshavamurthy Anil S , Kay Sievers , tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org, motoyuki-tPnzhWqfZ96MLkP6nYsO9A@public.gmane.org, Adrian Bunk , Andrew Morton , rml-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Tue, 9 Nov 2004 14:55:02 -0800, Greg KH wrote: > On Fri, Nov 05, 2004 at 09:18:48PM -0800, Keshavamurthy Anil S wrote: > > Also, since you have brought this, I have one another question to you. > > Now in the new kernel, I see whenever anybody calls sysdev_register(kobj), > > an "ADD" notification is sent. why is this? I would like to call > > kobject_hotplug(kobj, ADD) later. > > This happens when kobject_add() is called. You shouldn't ever need to > call kobject_hotplug() for an add event yourself. > This is not always the case. One might want to postpone ADD event until all summpelental object attributes are created. This way userspace is presented with object in consistent state. -- Dmitry ------------------------------------------------------- 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_id=5588&alloc_id=12065&op=click