From: miloody@gmail.com (loody)
To: kernelnewbies@lists.kernelnewbies.org
Subject: [Q] USB urb completion handler
Date: Tue, 22 May 2012 14:55:02 +0800 [thread overview]
Message-ID: <CANudz+uPJO4ZaUbfSkEydKLKyMFMBzQzpBgRiPL3L1CV0K+0qw@mail.gmail.com> (raw)
In-Reply-To: <CALF0-+VGjRmE4sCy8N-6eY1MqjfDUSJcZ87F1QeD4GyBAL8OBw@mail.gmail.com>
hi:
2012/5/8 Ezequiel Garcia <elezegarcia@gmail.com>:
> On Mon, May 7, 2012 at 2:48 PM, Peter Senna Tschudin
> <peter.senna@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,
next prev parent reply other threads:[~2012-05-22 6:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 17:18 [Q] USB urb completion handler Ezequiel Garcia
[not found] ` <CA+MoWDp7taxx=6=DTM2MnU9GfU5F_bPLCHNh=j5GfJNwwqVkHQ@mail.gmail.com>
[not found] ` <CALF0-+WPDfWg_afT1at=6yjouXPPJorMsenCGPfb2U7pYGSGnw@mail.gmail.com>
[not found] ` <CA+MoWDpfp4bk-+Sg5abfWtJEA7UPDg9FdyJATfgWkLiLOaz2_A@mail.gmail.com>
[not found] ` <CALF0-+U=U=Rc0YATz-YNHN_HnXOr2LpZzoPLH02uSJpTYxdtuQ@mail.gmail.com>
2012-05-07 17:55 ` Fwd: " Ezequiel Garcia
2012-05-22 6:55 ` loody [this message]
2012-05-22 17:37 ` Ezequiel Garcia
2012-05-24 1:44 ` loody
2012-05-24 2:41 ` Ezequiel Garcia
2012-05-22 6:56 ` loody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANudz+uPJO4ZaUbfSkEydKLKyMFMBzQzpBgRiPL3L1CV0K+0qw@mail.gmail.com \
--to=miloody@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).