Endianness of wTotalLength field

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

 



Hi,

Recently, I tested libusb on a PowerPC processor and found that devices
were not enumerating. This was due to the assumption that the length of
the configuration descriptor was swapped to big endian, as with other 16
bit values in the descriptor. It appears (in core/config.c) that this
value is actually always left as a little endian value.

A few questions:
1. Is this a bug or expected behavior?
2. Is it documented anywhere?
3. Should user space applications that depend on /dev/bus/usb assume
that this value is always little endian?

Thanks for your time!
-Joe
--
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