LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   mouse device driver (https://www.linuxquestions.org/questions/programming-9/mouse-device-driver-197383/)

thanhbk99 06-24-2004 08:05 PM

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

infamous41md 06-24-2004 09:09 PM

i think it is /usr/src/linux/drivers/input/mousedev.c , which uses the input handler interface.

thanhbk99 06-27-2004 07:49 PM

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

infamous41md 06-27-2004 10:00 PM

http://www.xml.com/ldd/chapter/book/

thanhbk99 06-28-2004 12:53 AM

thanks alot
you are very kind ,

and may I have more ?

thanks

thanhbk99@yahoo.com

ugenn 06-28-2004 03:25 AM

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.

thanhbk99 06-28-2004 04:22 AM

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

infamous41md 06-28-2004 12:12 PM

i dont know what u mean. do u mean making system calls from kernel space? ie like calling write() from a module?

thanhbk99 06-28-2004 07:44 PM

ok
you 're right.

ie : write , inb , register_blkdev , spin_lock_init . . .
thanks
thanhbk99@yahoo.com

infamous41md 06-28-2004 10:07 PM

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.

thanhbk99 06-28-2004 10:48 PM

thanks infamous41md

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

thanks
thanhbk99@yahoo.com

infamous41md 06-29-2004 11:58 AM

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.

thanhbk99 06-29-2004 10:21 PM

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

thanhbk99 07-08-2004 08:55 PM

hi
pls tell me know which module is used for SERIAL 2 BUTTON MOUSE (GENERIC)

where is its source code ?
thanks

thanhbk99@yahoo.com

ugenn 07-08-2004 09:41 PM

sermouse


All times are GMT -5. The time now is 12:37 AM.