Re: [linux-usb-devel] buffers for USB data

2005-09-12 Thread Alan Stern
On Mon, 12 Sep 2005, Istvan De wrote: > > It is. Note that in general with bulk transfers, arrival of a > > short packet (32 bytes instead of 64, for example) indicates the end of a > > data stream. > so you mean that a short packet will only arrive if the device sends a short > packet or the u

Re: [linux-usb-devel] buffers for USB data

2005-09-12 Thread Istvan De
Hi, > > however, what if I > > allocate > > a 128byte buffer just for the sake of this example, and submit URBs with > > 64 byte transfer buffers. > > I hope you're speaking only theoretically. A 64-byte transfer buffer is yes, of course, I'm working currently with 5 ms buffers > > For the fi

Re: [linux-usb-devel] buffers for USB data

2005-09-12 Thread Alan Stern
On Mon, 12 Sep 2005, Istvan De wrote: > Hi, > > How do you implement buffers for streaming USB data in a kernel driver? > > For me, ring buffers would be an obvious choice, They seem like the obvious solution for almost any case. > however, what if I > allocate > a 128byte buffer just for the