Re: Registering USB Driver With Hotplug ?

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 3 Dec 2007, ashish mahamuni wrote:

> Hi All,
> I have written a usb driver for my pen drive.
> I can compile .ko file for my kernel successfully.
> But I don't know how to install it. OR we can say, how
> to  register this .ko with hotplug system.

You have to make your module known to the kernel build system.

> Also, whenever I insert my pen drive default driver
> gets loaded.. I want to stop this feature also..

That's easy.  Don't build the default driver.

> How should I test my driver?
> Please give me step by step information for installing
> and testing my module..

There are instructions in the book Linux Device Drivers, 3rd edition.  
It is freely available online.

Alan Stern


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.