LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Access kernel register from user application (http://www.linuxquestions.org/questions/linux-software-2/access-kernel-register-from-user-application-645002/)

navvu_mom 05-27-2008 01:32 AM

Access kernel register from user application
 
hello,

I need an application which can takes a register address and maps it to /dev/mem using mmap().
Now my application is mapping and reading the contents. But,
I want to test it by pushing some value to the register and if the read back passes, i can confirm the application is working.

My doubt is how can i do this
writing to a register of the kernel space is there any sys call that does this work.
i tried to write to the mapped address it is getting written and i am able to read from the mapped address as it is a pointer.
but how to write to register..

I will be happy if some one can help me.

Thanks and best Regards
Naveen


All times are GMT -5. The time now is 11:57 PM.