Re: USB Bulk buffer size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 13 Oct 2011, Paul Zimmerman wrote:

> Alan Stern <stern@...> writes:
> 
> > 
> > On Wed, 12 Oct 2011, Markus Rechberger wrote:
> > 
> > > > But it's
> > > > important to keep in mind that the device is completely unaware of the
> > > > transfer size.
> 
> If this is a mass-storage protocol, then that is not true. The device receives
> the transfer size in the CBW packet.

You're using the term "transfer size" in a different way.  The value in
the CBW packet is the amount of data expected to be transferred to/from
the device, whereas the "transfer size" I have been referring to is the
value of urb->transfer_buffer_length.  They don't have to be the same
because the data can be spread over several URBs.

> But I know you are well aware of that Alan, so I guess this is not mass-
> storage you are talking about.

No, it's a webcam.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux