On Sat, 6 Mar 2004, David Brownell wrote:

> Wolfgang Mües wrote:
> > How would I unlink all urbs from the completion handler?
> > If I do it synchronous, I'll have to sleep in the completion handler.
> 
> The kernel doc does point out explicitly that you can't use
> synchronous unlinking from a completion handler.
> 
> 
> > If I do it asynchronous, flow of execution will return from the
> > completion handler (and therefore reenabling the queue) before
> > the following urbs in the queue are really unlinked??
> 
> If the queue has been stopped (because of fault) then the
> unlinks should happen before re-enabling the queue.

To be more explicit, if a fault occurred and you unlink the URBs
asynchronously from your completion handler, the API guarantees that the 
URBs will be fully unlinked before the queue restarts, even if that's some 
time after your handler returns.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to