From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 26 Jan 2005 12:43:15 +0000 Subject: Re: usbcore vs. udev Message-Id: <1106743395.6865.15.camel@localhost.localdomain> List-Id: References: <20050125184727.GA13793@nostromo.devel.redhat.com> In-Reply-To: <20050125184727.GA13793@nostromo.devel.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, 2005-01-25 at 23:12 -0500, Bill Nottingham wrote: > Greg KH (greg@kroah.com) said: > > > modprobe usbcore yields no events to udev, as far as I can tell > > > by putting a catchall script in /etc/dev.d/default. > > > > Nor should it. Why would you think it should? > > Only because it emitted events on remove. :) I can't reproduce this here. I expect, with 050 you don't get any event in dev.d/, not for "remove" nor for the "add" event of usbcore. The events for class creation are just recently introduced by a change in the driver core and I blacklisted these for udev with version 049. > > Ah, you mean the class add and remove. Hm, I think we don't emit those > > because those are classes (not class_dev), and at remove time we don't > > know to not emit them. I'm considering always emiting them at add also, > > but it might mess up some userspace stuff, so I'm trying to be cautious > > and test it out a lot first. > > > > But again, udev doesn't care about these events, nor should it. > > Probably not. Perhaps hooking into hotplug for the class is better; > what I was originally looking at is hooking into the class/device > plug for the mounting of usbfs. Yes, hotplug.d/ should work fine for this. With the hotplug events managed by udevd (Fedora devel already swiched to it) the only difference between hotplug.d/ and dev.d/ is that /dev.d fires only on node creation/removal. Everything else, the environment, the availability of the node or wait_for_sysfs is exactly the same. Thanks, Kay ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ 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