Hi all, first post here so I'll try to be as clear as I can
Essentially I need to read an int that is stored in memory, and I have it's physical address. This address was obtained from a running kernel module, and I can confirm 100% that it is a physical address, not a virtual one.
I need to either create a kernel module, or a userspace app that will allow me to read the int from the physical address. Read only access is required, I don't need/want to write anything to memory at this time.
From what I've been reading, I think it might be possible to do what I want using the mmap function, which should (I might be wrong here) map a physical memory address into a process space so that it can be read from.
If anyone could provide some information on accessing physical memory, or mapping a physical address to a virtual address I would greatly appreciate it.
Thanks in advance!