From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 27 Mar 2006 14:07:23 +0000 Subject: Re: who sends from the kernel an event to udevd netlink socket? Message-Id: <20060327140723.GB13507@vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Mar 27, 2006 at 03:13:05PM +0200, Mark Ryden wrote: > Thanks, > Last question on this, to verify I understand correctly, if I may: > class_device_add() in class.c calls kobject_hotplug(). > kobject_hotplug() calls send_uevent() which calls netlink_broadcast(); > this is true only if CONFIG_HOTPLUG is defined,because > if it is not defined kobject_hotplug() is an empty function. (see the > header file , > kobject.h) > > So, as I understand, CONFIG_HOTPLUG must be defined (even though in > fact we don't use hotplug itself) in order that uevents will be sent via netlink > to the udev user space daemon. Yes, but CONFIG_HOTPLUG depends on CONFIG_EMBEDDED, so you usually can't disable it for a "normal" kernel. Kay ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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