LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   writing usb and mouse device driver. (https://www.linuxquestions.org/questions/linux-software-2/writing-usb-and-mouse-device-driver-797754/)

shinde_amit001 03-25-2010 04:37 AM

writing usb and mouse device driver.
 
I am writing usb device driver and i want some help.
OS that i am using is suse10.2 i am also parallely trying on fedora9. If i write down complete usb driver that is mentioned in your documents, what are the extra things that i need to do apart from inserting that module in to kernel (insmod).If i insert my usb driver module in to kernel how can we stop kernel from using previous usb driver and now kernel should use the driver(module) that i have inserted.
Similarly i have also written mouse device driver for ps2 mouse.But i faced the simiar problem.How we should tell to kernel that dont use previous driver for mouse use that i have inserted.
Please Help Me.If i could get way for this i will be able to run both the drivers.

evo2 03-25-2010 04:49 AM

Have you tried simply blacklisting the drivers you don't want to load?

Evo2.

shinde_amit001 03-25-2010 07:36 AM

i dont know what is this and how to do that. can u please elaborate it.

evo2 03-25-2010 05:45 PM

On a Debian based system you would do this by:
Code:

echo "blacklist somemodule" >> /etc/modprobe.d/blacklist.conf
And for documentation:
Code:

man modprobe.conf
Evo2.


All times are GMT -5. The time now is 05:03 PM.