LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2004, 08:05 PM   #1
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Rep: Reputation: 0
mouse device driver


Hello everybody,

Please show me:
-which module controls current mouse ? , where is it in kernel
(source and module)
(I use PS/2 mouse , Redhat Linux 2.4.20-6)
-I know its interrupt (interrupt 12) but I don't know iis I/O Address.

I want to alter its module by changing some code .
thanks alot

thanhbk99
 
Old 06-24-2004, 09:09 PM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
i think it is /usr/src/linux/drivers/input/mousedev.c , which uses the input handler interface.
 
Old 06-27-2004, 07:49 PM   #3
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
thanks alot ,
I found it , thanks.

Please give me yours books about device driver ,
If you have , please send it to thanhbk99@yahoo.com
thanks alot
 
Old 06-27-2004, 10:00 PM   #4
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
http://www.xml.com/ldd/chapter/book/
 
Old 06-28-2004, 12:53 AM   #5
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
thanks alot
you are very kind ,

and may I have more ?

thanks

thanhbk99@yahoo.com
 
Old 06-28-2004, 03:25 AM   #6
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
I think the driver model has changed from 2.4 -> 2.6. So a lot of the books out there are pretty dated. The best place for 2.6 kernel docs is probably still the Document directory in the source tree.
 
Old 06-28-2004, 04:22 AM   #7
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
thanks alot

when I write device driver, I need some system call ,...
Can you give me some books about system call (having connection with writing device driver)

thanks alot

If you have , can you send them to my email , please ?
thankbk99@yahoo.com
 
Old 06-28-2004, 12:12 PM   #8
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
i dont know what u mean. do u mean making system calls from kernel space? ie like calling write() from a module?
 
Old 06-28-2004, 07:44 PM   #9
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
ok
you 're right.

ie : write , inb , register_blkdev , spin_lock_init . . .
thanks
thanhbk99@yahoo.com
 
Old 06-28-2004, 10:07 PM   #10
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
well now've you just confused me even more. i was asking you "do you want to make a system call from a kernel module? and by that meaning, do u want do something like write(STDOUT_FILENO, "hello from the kernel", len);" however, u just seem to want to make calls to regular functions exported by the kernel. if u read the book above u'll see how to. it's a great book, and tho it may be for the 2.4 kernel, the concepts are still valid.
 
Old 06-28-2004, 10:48 PM   #11
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
thanks infamous41md

books is very great ,
and I also want more books like that , can I ?

thanks
thanhbk99@yahoo.com
 
Old 06-29-2004, 11:58 AM   #12
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
i dont personally know of any other books like that, but im sure there are some. i dont really think u need much more than that, and this site: www.tldp.org . read the kernel guides there as a supplement.
 
Old 06-29-2004, 10:21 PM   #13
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
I found this site
http://www.cs.arizona.edu/computer.h..._html/TOC.html

if you know something like that , please show me.
thanks

thanhbk99@yahoo.com
 
Old 07-08-2004, 08:55 PM   #14
thanhbk99
LQ Newbie
 
Registered: Jun 2004
Location: Viet Nam
Posts: 9

Original Poster
Rep: Reputation: 0
hi
pls tell me know which module is used for SERIAL 2 BUTTON MOUSE (GENERIC)

where is its source code ?
thanks

thanhbk99@yahoo.com
 
Old 07-08-2004, 09:41 PM   #15
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
sermouse
 
  


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
My driver for mouse gives irq no. error, device busy Jyo Linux - Newbie 1 08-24-2004 05:04 PM
mouse/mouse driver problem nadim khemir Mandriva 0 08-07-2004 05:01 AM
new nvidia driver & mouse problems - odd errors produced, no mouse detected. UrbanSlayer Debian 4 07-03-2004 08:13 PM
second mouse device bolli Slackware 3 12-25-2003 06:11 AM
Mouse device name celtic32 Linux - General 1 09-26-2002 07:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 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