On Sat, 7 Jan 2006 [EMAIL PROTECTED] wrote:

> Hi,
> 
>         What porblems could I face if I use more of usb_bulk_msg, i.e USB 
> transfers without URBs ..

There aren't any problems with usb_bulk_msg.  But there are some 
disadvantages:

        You can't unlink an URB if you want to cancel it before the
        timeout has expired.

        It has to allocate an URB dynamically each time you call it.
        You can't allocate a single URB and then simply use it over
        and over again.

        If you're going to use the same transfer buffer many times,
        you can't set up a DMA mapping for it.

On the other hand, using usb_bulk_msg is very simple and involves writing 
less code than using your own URBs.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to