A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Wed, Nov 11, 2009 at 05:43:36PM +0530, Satheesh Kumar wrote: > may be i am not clear with my doubts.. > > 1. i am writing a new USB class driver for MTP devices. But when i plug-in > the device it is atomatically recognised with mass storage module taking the > interface information. But the string descriptor defined as MTP, so how i > can lead my class driver to probe the device before usb_stroage module > picks. You can't, what you need to do is modify the usb_storage module to not bind to these types of devices, and then your driver will always be properly loaded. Do you have a pointer to the source for your driver code somewhere? > 2. How USB plugin event in class driver can be passed to userspace. So that > my MTp library application can understand asynchronoously that device been > pluged in. Example if i connect iPod in Linux system it gets recognised by > rhytom box application immediately. How come rythmbox able to know that a > media player device pluged in. It listens to HAL or libudev events, depending on the version of the distro (HAL is being removed from the system right now, so don't write new code depending on it please.) Nothing new needs to be done in your driver at all, the kernel infrastructure and udev do this kind of notification for you automatically. Hope this helps, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ