Thanks for your answer David,
nevertheless, if I want something generic that I can choose which driver I
want to replace... Is there some central place that the usb-core driver
searches to know which driver to load ?
besides, sometimes, a more appropriate than the generic class driver that is
provided in the Linux USb baseline is needed. In general, the "Universal USB
rules" say, first load the specific vendor/product driver than if no such
driver is available load the class/subclass driver. How this scheme works
under Linux ?
Thanks
Barak
-----Original Message-----
From: David Brownell
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 8/11/2000 6:52 PM
Subject: Re: [linux-usb] Kernel driver question
For a modular kernel, you can use the USBD scripts
available from the www.linux-usb.org website. (The
FAQ is a place to start, but this question isn't
there ...) Then the /etc/usb/drivers/printer config
script just gets replaced with something that knows
to load the "mydriver" module instead.
For a static kernel, you'll need to swap out the
"printer.o" for "mydriver.o".
- Dave
----- Original Message -----
From: "barak cohen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, 11 August, 2000 9:38 AM
Subject: [linux-usb] Kernel driver question
> Hello Folks,
>
> I want to write a USB device driver that is commutative to current one
(i.e.
> i want to load mydriver.o instead a current one lets say printer.o).
In
> addition I want to be able to control is the system loads the original
> driver or my driver (I guess I can do it manually with rmmod and
insmod). My
> question is, what should I do in terms of configuration in order for
the USB
> core under linux to know which driver to load...
>
> Thanks
>
> Barak
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]