Querying USB device's bInterfaceNumber

Adam Jackson ajax at nwnk.net
Tue Nov 3 10:13:16 PST 2009


On Tue, 2009-11-03 at 10:03 -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.

X doesn't have any particular knowledge of USB internally, you'll need
to roll your own.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.x.org/archives/xorg-devel/attachments/20091103/5eb319c7/attachment.pgp 


More information about the xorg-devel mailing list