From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: usbcore vs. udev
Date: Wed, 26 Jan 2005 03:38:08 +0000 [thread overview]
Message-ID: <20050126033807.GA7912@kroah.com> (raw)
In-Reply-To: <20050125184727.GA13793@nostromo.devel.redhat.com>
On Tue, Jan 25, 2005 at 08:33:41PM -0500, Bill Nottingham wrote:
> Greg KH (greg@kroah.com) said:
> > On Tue, Jan 25, 2005 at 01:47:27PM -0500, Bill Nottingham wrote:
> > > usbcore seems to only generate udev events on removal; it never
> > > generates add events. Any particular reason?
> > >
> > > (2.6.10-acX, if it matters.)
> >
> > What type of udev events? Those for the usb major number? So things
> > like the USB printer driver don't work anymore?
>
> 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? No /dev nodes are
owned by usbcore.
> modprobe -r usbcore yields:
>
> ACTION=remove
> DEVNAME=/dev/usb
> DEVPATH=/class/usb
>
> and
>
> ACTION=remove
> DEVNAME=/dev/usb_host
> DEVPATH=/class/usb_host
>
> I'd expect to get 'add' for the same devname/devpath on load
> of usbcore, or no events on usbcore removal.
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.
thanks,
greg k-h
-------------------------------------------------------
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
next prev parent reply other threads:[~2005-01-26 3:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-25 18:47 usbcore vs. udev Bill Nottingham
2005-01-25 22:34 ` Kay Sievers
2005-01-25 22:46 ` Greg KH
2005-01-26 1:33 ` Bill Nottingham
2005-01-26 1:55 ` Bill Nottingham
2005-01-26 3:38 ` Greg KH [this message]
2005-01-26 4:12 ` Bill Nottingham
2005-01-26 12:43 ` Kay Sievers
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=20050126033807.GA7912@kroah.com \
--to=greg@kroah.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).