Re: Is usb_buffer_alloc a generic URB buffer allocator ? (was Split Bulk Transfers)

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tuesday 15 May 2007, Laurent Pinchart wrote:
> Hi everybody,
> 
> following the discussion about the split bulk transfers, Alan Stern and David 
> Brownell told me I shouldn't use usb_buffer_alloc as a generic purpose URB 
> buffer allocated. However, Documentation/usb/dma.txt contradicts this. Should 
> the documentation be fixed, or can/should usb_buffer_alloc be used to 
> allocate URB buffers ?

I think the doc should be fixed ... avoid using it as a general purpose
allocator.  We've learned better since that doc was first written.  :)

It *can* be used to allocate buffers, in cases where the DMA map/unmap
overhead of the more typical usage would excessive.  So it's not going
to vanish.

- Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.