Re: writing in file from kernel space ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon 30 June 2003 09:52, pankaj chauhan wrote:

> i need to save the current mouse position and the status of buttons in a
> file from the driver , just for sake of understading . what is other
> solution for this if i can't write in the file from the module ?

Have you ever considered something to do a simple hack at usbmouse device driver?
If you never did it, i suggest to look at usbmouse dev. driver source code (drivers/usb/usbmouse.c)


> the solution i can think of is : to make a  proc file in /proc from the
> driver and write the needed data in it , and then copy it to any other from
> the proc file with help of a user space routine .
> If u have any other solution please suggest the same
..disagree..
I think the right solution is to write an input module. 
Take a look here :
http://www.linux.it/~rubini/docs/input/input.html



Daniele.





--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux