Re: HCI_Reset and Notification to User-Space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pavan,

Please don't top-post.

On Tue, Jul 29, 2008 at 4:40 PM,  <pavan_savoy@xxxxxxxxxxxxxx> wrote:
> Also hci_notify notifies a HCI_DEV_REG event thru' the notifier chain, what I couldnt get was, how does HCI-daemon wait on it.
> (related to g_io_add_watch or something was my guess, but not sure..., or is it using the Stack-Internal Socket Events? which would require hci_dev_open to be called.)
>
> I until now had thought notifier chains are used only for inter-kernel notifications. I guess I was wrong.

The notification IS sent to a kernel client - the hci_sock_dev_event
function. That function in turn sends the event to a user space via a
socket which was created and watched by hcid beforehand. Check out
hcid's main function for more details.

Regards,
Ohad.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux