On Sat, 20 May 2006, Paul Giblock wrote:

> So what is the best way to constantly read packets from the usb
> device?  My device sends a 32byte report periodically.  Is it safe to
> call usb_submit_urb() from my hqct_read_callback function? Or should I
> use a kthread with usb_bulk_msg()?

The callback/resubmit approach is better.  It has much less overhead than
using a kthread.  Furthermore it allows you to maintain the bandwidth 
allocation; with usb_bulk_msg() you face the possibility of losing the 
reserved bandwidth after each URB.

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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