From mboxrd@z Thu Jan 1 00:00:00 1970 From: miloody@gmail.com (loody) Date: Tue, 22 May 2012 14:55:02 +0800 Subject: [Q] USB urb completion handler In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org hi: 2012/5/8 Ezequiel Garcia : > On Mon, May 7, 2012 at 2:48 PM, Peter Senna Tschudin > 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,