How to know the USB port number?
I am using a USB hub with 7 downstream ports.
I am connecting 4 of the same devices(custom class device) on 4 ports.
I have a requirement to know to which physical port is a device connected, cause I have to number them accordingly in the application GUI.
I found an ioctl USBDEVFS_HUB_PORTINFO, in "usbdevice_fs.h" which does give me this information.
"hub_ioctl" does give us this information.
now I don't know how to call this ioctl from my application.
Do I have to make any provision in my device driver to talk to the hub driver? if so can anyone please explain me how do we do that.
I did google on this but it seems to be very trivial, so could not find any information.
Note: am using 2.6.22 on i.Mx21S target
Thanks in advance
- Free Today: September Issue of Linux Journal (Retail value: $5.99)
- The Tiny Internet Project, Part I
- Bitcoin on Amazon! Sort of...
- Machine Learning with Python
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Android Browser Security--What You Haven't Been Told
- Epiq Solutions' Sidekiq M.2
- Securing the Programmer
- Nativ Disc
Pick up any e-commerce web or mobile app today, and you’ll be holding a mashup of interconnected applications and services from a variety of different providers. For instance, when you connect to Amazon’s e-commerce app, cookies, tags and pixels that are monitored by solutions like Exact Target, BazaarVoice, Bing, Shopzilla, Liveramp and Google Tag Manager track every action you take. You’re presented with special offers and coupons based on your viewing and buying patterns. If you find something you want for your birthday, a third party manages your wish list, which you can share through multiple social- media outlets or email to a friend. When you select something to buy, you find yourself presented with similar items as kind suggestions. And when you finally check out, you’re offered the ability to pay with promo codes, gifts cards, PayPal or a variety of credit cards.Get the Guide