Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ilia.kolominsky@gmail.com
Cc: linux-bluetooth@vger.kernel.org, Ilia Kolomisnky <iliak@ti.com>
Subject: Re: [PATCH v2 bluetooth-next] Added ioctl flow specification command on HCI socket
Date: Sun, 14 Aug 2011 14:17:13 -0700	[thread overview]
Message-ID: <1313356642.3373.170.camel@aeonflux> (raw)
In-Reply-To: <1313325793-27866-1-git-send-email-iliak@ti.com>

Hi Ilia,

> While it is possible to send flow specification HCI command
> from the user space directly via the send api of HCI socket,
> a more specific approach is preferable over the opaque
> HCI command, since it will allow for centralized mangament of
> flow specifiaction requests for different l2cap flows over
> the same acl link in future. This feature was used successfully
> for solving the qos A2DP issue in piconet with concurent file
> transfer.
> 
> Signed-off-by: Ilia Kolomisnky <iliak@ti.com>
> ---
>  include/net/bluetooth/hci.h      |   38 ++++++++++++++++++----
>  include/net/bluetooth/hci_core.h |    3 ++
>  net/bluetooth/hci_conn.c         |    1 +
>  net/bluetooth/hci_core.c         |   63 ++++++++++++++++++++++++++++++++++++++
>  net/bluetooth/hci_event.c        |   37 ++++++++++++++++++++++
>  net/bluetooth/hci_sock.c         |    2 +
>  6 files changed, 137 insertions(+), 7 deletions(-)
> 
> diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
> index be30aab..f0f90d5 100644
> --- a/include/net/bluetooth/hci.h
> +++ b/include/net/bluetooth/hci.h
> @@ -109,6 +109,8 @@ enum {
>  #define HCISETLINKMODE	_IOW('H', 226, int)
>  #define HCISETACLMTU	_IOW('H', 227, int)
>  #define HCISETSCOMTU	_IOW('H', 228, int)
> +#define HCISETFLOWSPEC _IOW('H', 229, int)
> +

I am not accepting any new addition of ioctl() at this moment. We are
moving towards a proper defined management API. And that is how this
should be addressed.

And these kind of ictol() that have to execute a HCI command and wait
for the result are not a good for being an ioctl() in the first place.

Regards

Marcel



  reply	other threads:[~2011-08-14 21:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14 12:43 [PATCH v2 bluetooth-next] Added ioctl flow specification command on HCI socket ilia.kolominsky
2011-08-14 21:17 ` Marcel Holtmann [this message]
2011-08-15  7:52   ` Luiz Augusto von Dentz
2011-08-15 15:40     ` Ilia, Kolominsky

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=1313356642.3373.170.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ilia.kolominsky@gmail.com \
    --cc=iliak@ti.com \
    --cc=linux-bluetooth@vger.kernel.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