Am Mittwoch, 5. Februar 2003 00:49 schrieb Christopher Li:
> I have  a question about the buffer size limit in the setup URB.
> This limit is in the usbdevfs, the usb core seems doesn't  care:
>
> in devio.c, function proc_submiturb:
>
>               /* min 8 byte setup packet, max arbitrary */
>               if (uurb.buffer_length < 8 || uurb.buffer_length >
> PAGE_SIZE)
>                       return -EINVAL;
>
> So usbdevfs will refuse to serve the setup packet bigger than one page.
>
> Is there a reason why is that? I am asking because some user get some

It would seem to me that the limit the code could support is 64K.
IMHO there's nothing wrong with using that as an upper limit. It makes
kmalloc likely to fail, but the function would fail anyway.

        Regards
                Oliver



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to