linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: config questions
Date: Wed, 28 Aug 2002 05:21:02 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-103051214622011@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-103034135025502@msgid-missing>

On Wed, Aug 28, 2002 at 05:13:04AM +0100, Ajay wrote:
> 
> > > and in /etc/hotplug/interfaces reacted to the
> > arguments registered and 
> > > derigistered to do what I needed for /dev/usb0
> > 
> > There's no such thing as /dev/usb0!  :)
> 
> Is this the usb hub? I can't find usb0 in my system
> either(RHL 7.3), but /proc/devices lists "180 usb". I
> tried 
> mknod /dev/usb/hub c 180 0 
> but it didn't seem to point to the hub ('open' failed
> : "No such device"). What is the device file for the
> USB-UHCI hub?

Why do you want to talk to the root uhci hub?  Why would you want to
talk to _any_ hub for that matter?  You can't really do anything with
them.

And device 180 0 is for a USB printer, not a USB hub.  See the list at:
	http://www.linux-usb.org/usb.devices.txt
for more info on the reserved USB major:minor numbers.

> AFAICS hotplug checks the file /proc/bus/usb/devices.
> Why not communicate with the hub directly using ioctl
> calls? 

If you _really_ want to send an ioctl command to a USB hub, you have to
do it through usbfs, which is mounted at /proc/bus/usb usually.  You
need to find the specific file under that directory that matches your
hub.

I really don't like having that ioctl in the kernel, and am looking to
remove it.  Why do you want to call it?

Actually, in looking at the kernel code some more, I don't see how
anyone can call hub_ioctl()...

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
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

      parent reply	other threads:[~2002-08-28  5:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26  5:50 config questions Ian Walters
2002-08-27 14:53 ` David Brownell
2002-08-27 23:50 ` Ian Walters
2002-08-28  4:13 ` Ajay
2002-08-28  5:21 ` Greg KH [this message]

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=marc-linux-hotplug-103051214622011@msgid-missing \
    --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).