Am Freitag, 8. August 2003 10:37 schrieb Prageeth: > hi all, > > in my driver i need to provide synchronous read/write > operations to the application. moreover, operation > cancellation is also needed. > > -what is the most recommended way to wait for > completion of an urb?
Use a struct completion and call complete() on it from inside your URB's completion handler. > -i was planning to use a modified version of > usb_start_wait_urb() used inside usb_bulk_msg() That's old and crufty code written before modern waiting primitives were available. Please don't copy it. HTH Oliver ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel