* Questions regarding NetLink APIs.
@ 2008-10-17 14:51 Alok
2008-10-23 4:48 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Alok @ 2008-10-17 14:51 UTC (permalink / raw)
To: linux-bluetooth
Marcel,
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
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)}
3. Would it be a separate kernel module?
Thanks,
Alok.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Questions regarding NetLink APIs.
2008-10-17 14:51 Questions regarding NetLink APIs Alok
@ 2008-10-23 4:48 ` Marcel Holtmann
2008-10-30 13:10 ` [PATCH] NetLink patches Alok
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2008-10-23 4:48 UTC (permalink / raw)
To: Alok; +Cc: linux-bluetooth
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] NetLink patches.
2008-10-23 4:48 ` Marcel Holtmann
@ 2008-10-30 13:10 ` Alok
0 siblings, 0 replies; 3+ messages in thread
From: Alok @ 2008-10-30 13:10 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
Marcel,
Attaching 2 patches for netlink support.
1. Adds net/bluetooth/netlink.c for netlink support with initialization
and exit functions.
2. Registers a generic netlink family "bluetooth".
Let me know if anything needs to be modified.
Thanks,
Alok.
[-- Attachment #2: 0001-Adding-net-bluetooth-netlink.c-for-netlink-support.patch --]
[-- Type: application/mbox, Size: 2616 bytes --]
[-- Attachment #3: 0002-Registering-general-netlink-family-bluetooth.patch --]
[-- Type: application/mbox, Size: 1286 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-30 13:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 14:51 Questions regarding NetLink APIs Alok
2008-10-23 4:48 ` Marcel Holtmann
2008-10-30 13:10 ` [PATCH] NetLink patches Alok
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox