public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] hci_dev_open function
@ 2004-10-25 12:21 radoa
  2004-10-26 21:33 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: radoa @ 2004-10-25 12:21 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] hci_dev_open function
  2004-10-25 12:21 [Bluez-devel] hci_dev_open function radoa
@ 2004-10-26 21:33 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2004-10-26 21:33 UTC (permalink / raw)
  To: radoa; +Cc: BlueZ Mailing List

Hi Radoa,

> 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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-26 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 12:21 [Bluez-devel] hci_dev_open function radoa
2004-10-26 21:33 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox