Query Hard Memory Addresses

Kenneth Adam Miller kennethadammiller at gmail.com
Thu Oct 22 15:13:31 EDT 2015


So, previously it was discussed that /dev/mem could be used to mmap a
specific hardware memory into a process. Now I need to unit test some
userland code that does exactly that, but I need to make sure that the unit
test selects a small page that is always free in kernel land. How can I
query mem to just grab the location of a free page?

(my development setup is different from my other deployment; in deployment
these values are hard coded, in development they occur on a qemu emulator)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151022/f77199b6/attachment.html 


More information about the Kernelnewbies mailing list