On Wed, 15 Sep 2004, Nishanth Aravamudan wrote: > > Why not simply use wait_event_interruptible()? > > I'm not too familiar with the USB code, so I'm not sure if such a change > is possible in all cases. It may help if I give an example of what I was > referring to: > > drivers/usb/misc/auerswald.c::auerchain_start_wait_urb()
<...> > How would I go about making the change as you suggested (if it's > possible here?). Feel free to take your response off-list or to just > point me to a URL/doc. You can more or less just copy the code from drivers/usb/core/message.c::usb_start_wait_urb(). It does pretty much what I think you want: submit an URB, then do an uninterruptible wait until either the URB completes or a timeout expires. Is that right? Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel