Hello Oliver,

On Sunday 12 January 2003 13:18, Oliver Neukum wrote:

> OK, if we are to do this let's do it right and divorce state from
> error reporting.
> As far as I can tell an URB should have four states, with preliminary
> names:
>
> 1 - URB_FREE
> 2 - URB_SUBMITTED
> 3 - URB_COMPLETING
> 4 - URB_CANCELED
>
> with the following transitions allowed:
> 1->2, 2->3, 3->1, 3->2, 3->4, 4->1

In which state is an URB which is submitted, but not completed?
I suspect state 2 - URB_SUBMITTED.
What should I do if I want to cancel this URB?
This is a transition 2->4.

Maybe I have missed something =8-O

> Do we have to guarantee that usb_submit_urb() returns before
> the completion handler is called?

Why should you want to guarantee this? 

best regards
Wolfgang Mües



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to