Re: Endianness of wTotalLength field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 30 May 2009, Daniel Drake wrote:

> Greg KH wrote:
> > Hm, this happened years ago, are you sure this is a new thing?
> 
> I don't think it's a new thing. But I recently wrote libusb code based 
> on that documentation, which seems not to be entirely accurate. Would 
> you agree? Is it simply an omission in the docs?

The documentation is wrong and has always been.  The multi-byte fields
in the device descriptor are converted to host-endian form, but not the
fields in the configuration descriptors.  This was true even in 2.4.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux