From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 27 Mar 2006 11:30:38 +0000 Subject: Re: who sends from the kernel an event to udevd netlink socket? Message-Id: <20060327113038.GA13400@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 01:10:29PM +0200, Mark Ryden wrote: > Hello, > I wonder: > In the last versions of udev, which work **WITHOUT** hotplug: > as I understand, there is a udevd daemon which listens on a NETLINK socket > to events which come from the kernel.Suppose I plug to the USB socket > an ov511 webcam; who > sends the "ADD" event to the udevd NETLINK socket? > I had looked at the code of ov511.c > (drivers/usb/media in the kerbnel tree) > I saw that there is creation of sysfs entries > (in ov51x_probe, there is a call to ov_create_sysfs()) > So my question is : is this adding to sysfs is the one that causes sending video_register_device -> class_device_register -> class_device_add -> kobject_uevent 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