linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Gix <bgix@codeaurora.org>
To: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: LE Compound Procedure strategy
Date: Mon, 13 Dec 2010 13:46:56 -0800	[thread overview]
Message-ID: <4D069450.70502@codeaurora.org> (raw)


Hi Vinicius,

I am breaking this out into a new conversation.

How about we create a new parameter to g_attrib_send, which is a boolean 
that indicates wether or not the command being sent may be the start (or 
continuation) of a Compound GATT procedure?

If this flag is TRUE, then when gattrib.c creates the command record for 
it, it will see if it is continuing a prior procedure, and if so add it 
to the head of the queue. Perhaps even *replace* the current head, which 
would presumably be recognized as the original command.

This would allow it to reuse the Command ID (allowing the upper layers 
to cancel as needed) and ensure the single-threaded intent of compound 
GATT procedures.

An additional gattrib.c API could then be added which must be called at 
the conclusion of all compound GATT procedures. This new API would 
perform final clean-up on the procedure, including allowing the next 
(following) items in the command queue to be serviced.

Your Thoughts?


-- 
Brian Gix
bgix@codeaurora.org
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

                 reply	other threads:[~2010-12-13 21:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4D069450.70502@codeaurora.org \
    --to=bgix@codeaurora.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=vinicius.gomes@openbossa.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).