Skip to contentSkip to conversation

hci_dev_open function

Bluez-devel radoa 2 participants 2 messages Oct 25, 2004 – Oct 26, 2004 Bluetooth drivers

lore
Share & tools
lore

radoa

author
#0 lore raw

Hi,

I want to ask how linux kernel initializes HCI sockets.
When bluetooth dongle is inserted to USB, is registered by USB driver in bluez stack as new device. But has not set flag HCI_UP, this flag is set only in call of ioctl command HCIDEVUP - which calls hci_dev_open(). Function hci_dev_open() resets BT dongle and receives its BT address. But where and when is ioctl with HCIDEVUP cmd called? It seems that ioctl call is only place where is BT dongle initialized.
I use kernel 2.6.8.1

Thank you very much

radoa

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Radoa,

Quoted 7 lines

I want to ask how linux kernel initializes HCI sockets.
When bluetooth dongle is inserted to USB, is registered by USB driver in bluez stack as new device. But has not set flag HCI_UP, this flag is set only in call of ioctl command HCIDEVUP - which calls hci_dev_open(). Function hci_dev_open() resets BT dongle and receives its BT address. But where and when is ioctl with HCIDEVUP cmd called? It seems that ioctl call is only place where is BT dongle initialized.

there is no call like hci_dev_open() in the source code and the final device initialization is done inside the kernel.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel