Date: Tue, 15 Nov 2011 22:14:43 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: Marcus von Appen <mva@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: uhid(4) and report structures Message-ID: <201111152214.43361.hselasky@c2i.net> In-Reply-To: <20111115205406.GB1922@medusa.sysfault.org> References: <mailpost.1321385868.5489178.82004.mailing.freebsd.current@FreeBSD.cs.nctu.edu.tw> <4EC2C757.4060303@FreeBSD.org> <20111115205406.GB1922@medusa.sysfault.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111152214.43361.hselasky>