Re: uhid(4) and report structures

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Tue, 15 Nov 2011 22:14:43 +0100
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
Received on Tue Nov 15 2011 - 20:17:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:20 UTC