From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 28 Aug 2002 05:21:02 +0000 Subject: Re: config questions Message-Id: 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 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