thanks On Tue, 7 Dec 2004 16:18:38 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Wed, 8 Dec 2004, M Taha Masood wrote: > > > Hi, > > How can i get the port status for a particular port on an OHCI HC/Root Hub? > > Do i need to send an ioctl to the OHCI HC Driver ? Or to the usb core ? > > how exactly > > Use libusb or else use usbfs directly. Open the device file under > /proc/bus/usb/ corresponding to the root hub of interest and use the > USBDEVFS_CONTROL ioctl (or its equivalent) to send a Get-Port-Feature > request for the port status. The same technique will work for any root > hub -- and any external hub as well -- regardless of whether it is OHCI. > > Alan Stern > >
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel