uhid(4) and report structures
Hans Petter Selasky
hselasky at c2i.net
Tue Nov 15 21:17:32 UTC 2011
On Tuesday 15 November 2011 21:54:06 Marcus von Appen wrote:
> struct usb_ctl_report {
> int ucr_report;
> u_char ucr_data[1024];
> };
Hi,
Before the descriptor length was limited to 1024 bytes.
Now it is limited to 65535 bytes, which is the USB maximum for control
endpoints.
Having a buffer this large by default does not make sense, so a pointer and
length is the best solution.
The application also sometimes know about what descriptor size(s) it expects.
--HPS
More information about the freebsd-current
mailing list