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