> That's not safe to do with any filesystem (virtual or physical). There's
> always a race between determining the file size and reading. Not to
> mention there were some kernels (IIRC) that send the device descriptor
> but set the file size to 0.
>
> You should just read and if you get 0, then there's nothing (really old
> kernels), or if you get 18, then it's the config descriptor.
>
> I've been thinking about sending the cached config descriptors as well
> if you read enough.

Hmmm.  Well, I will suggest a patch to the speedtouch driver people.

Duncan.

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to