public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Alok <alokbarsode@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Questions regarding NetLink APIs.
Date: Thu, 23 Oct 2008 06:48:38 +0200	[thread overview]
Message-ID: <1224737318.9386.167.camel@californication> (raw)
In-Reply-To: <1224255091.6175.18.camel@greatbear>

Hi Alok,

> I had a few queries regarding the netlink APIs. I have been referring to
> net/wireless/nl80211.c for reference.
> 
> 1. Would the ioctls on raw sock(BTPROTO_HCI), be converted into netlink
> commands?
> eg HCIGETDEVLIST (NLBLUETOOTH_CMD_GET_DEVLIST),
> HCIGETDEVINFO    (NLBLUETOOTH_CMD_GET_DEV_INFO),
> HCIDEVUP         (NLBLUETOOTH_CMD_DEVUP) .. etc 

yes.

> 2. Would the netlink attributes consist of HCI Ioctl requests
> structures ? or individual structure members?
> eg:
> 
> [NLBLUETOOTH_ATTR_DEV_INFO] = {.len = sizeof(struct hci_dev_info)} 

No. We will have the parameters inside the structure as direct
attributes.

> 3. Would it be a separate kernel module? 

No. It will be within bluetooth.ko.

Regards

Marcel




  reply	other threads:[~2008-10-23  4:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 14:51 Questions regarding NetLink APIs Alok
2008-10-23  4:48 ` Marcel Holtmann [this message]
2008-10-30 13:10   ` [PATCH] NetLink patches Alok

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=1224737318.9386.167.camel@californication \
    --to=marcel@holtmann.org \
    --cc=alokbarsode@gmail.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