Querying USB device's bInterfaceNumber

Ping pinglinux at gmail.com
Tue Nov 3 10:23:55 PST 2009


Yes, you are right. I know that.  The question is how to get it inside the
xorg driver.  Ajax's reply indicates that there is no existing way for me to
get it inside xorg.  Then, where should I go to fetch the data if not
directly from something that I am "in control", the kernel driver?

I need a suggestion/solution.  Thank you for your reply.

Ping

On Tue, Nov 3, 2009 at 10:13 AM, Greg KH <greg at kroah.com> wrote:

> On Tue, Nov 03, 2009 at 10:03:18AM -0800, Ping wrote:
> > I need a quick answer since searching through the X server code takes too
> > long.
> >
> > Is there a way for me to get the bInterfaceNumber from a device HID
> > Descriptor inside an xorg Input device driver?  I feel there should be an
> > existing mechanism to fulfil this, maybe through an ioctl call?  Can
> someone
> > show me what parameter(s) I need to use if the ioctl is supported?
> >
> > Please also reply to me if you know there is no existing way to get the
> > bInterfaceNumber inside an xorg device driver so I will add my own
> > workaround in the kernel driver.
>
> The kernel already exports this information to userspace, so you do not
> need to add it to your specific kernel driver.  So it should be possible
> to do this for all USB devices.
>
> thanks,
>
> greg k-h
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.x.org/archives/xorg-devel/attachments/20091103/89a9f93b/attachment.htm 


More information about the xorg-devel mailing list