On Mon, Oct 17, 2005 at 03:39:21AM -0700, Ivy wrote: > > > > --- Alan Stern <[EMAIL PROTECTED]> wrote: > > On Thu, 13 Oct 2005, Ivy wrote: > > > > > Hi All, > > > > > > I am here with some set of doubts... Hope you people guide me > > > right direction. > > > > > > I would like to know, all USB devices (like BT dongle, camera) connected > > > to my system . To know this , i would like to have a kernel module with > > > callback function. This callback function would be registered with all > > > USB client driver. (driver above usbcore like mass storage drivers, > > > bluetooth drivers). Obviously whenever USB device connected with the > > > system or removed from the system. USB core will call the CLIENT drivers > > > functions (probe, disconnect). From those function my module callback > > > would be called for notification. > > > > > > ll be better way to do this ?.. Is there any suggestion for > > > achieving this ?.. > > > > You can do what you want in userspace by using hotplug events. > > I would like to do it Kernel space ... Is there any othere way ?.
I've wanted to set up a kernel notifier for adding USB devices in the past, things like usbfs and root_plug could use it. Just never got around to it yet, but it would be quite easy to add... thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
