Access kernel register from user application
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
|All times are GMT -5. The time now is 11:36 PM.|