[Q] USB urb completion handler

loody miloody at gmail.com
Tue May 22 02:55:02 EDT 2012


hi:

2012/5/8 Ezequiel Garcia <elezegarcia at gmail.com>:
> On Mon, May 7, 2012 at 2:48 PM, Peter Senna Tschudin
> <peter.senna at gmail.com> wrote:
>> http://www.makelinux.net/ldd3/chp-13-sect-3#chp-13-sect-3.4
>>
>> " If the function succeeds, the completion handler of the urb (as
>> specified by the complete function pointer) is called exactly once
>> when the urb is completed. When this function is called, the USB core
>> is finished with the URB, and control of it is now returned to the
>> device driver."
>>
>
> Bingo! Because the driver will only submit *one* urb at a time,
> how could it possible have more than one completion handlers
> called at a time?
how about multi-thread try to send urbs on the same pipe with the same
complete function?
>
> I wasn't thinking with the right half of my brain.
> Thanks,
> Ezequiel.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



-- 
Regards,



More information about the Kernelnewbies mailing list