On Mon, Oct 17, 2005 at 07:39:08PM -0700, Greg KH wrote:
> On Mon, Oct 17, 2005 at 03:39:21AM -0700, Ivy wrote:
> > --- Alan Stern <[EMAIL PROTECTED]> wrote:
> > > On Thu, 13 Oct 2005, Ivy wrote:
> > > > 
> > > > 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. 
> > > > 
> > > 
> > > 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...

And I've just done it.  See the patches on linux-usb-devel for this to
see if it will help you out.

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

Reply via email to