LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2010, 04:37 AM   #1
shinde_amit001
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
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.
 
Old 03-25-2010, 04:49 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Have you tried simply blacklisting the drivers you don't want to load?

Evo2.
 
Old 03-25-2010, 07:36 AM   #3
shinde_amit001
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
i dont know what is this and how to do that. can u please elaborate it.
 
Old 03-25-2010, 05:45 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
writing usb and mouse device driver. shinde_amit001 Fedora 1 03-25-2010 05:55 AM
writing usb and mouse device driver. shinde_amit001 SUSE / openSUSE 1 03-25-2010 05:55 AM
Writing own USB device driver Xenation Programming 7 04-03-2009 08:10 AM
Help in writing device driver ankit_chaudhri Programming 3 11-13-2007 11:50 AM
Need help in writing device driver eshwar_ind Programming 1 02-07-2004 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration