Is there a way to map virtual memory to physical memory. I need to be able to do this in order to write a memory diagnostic program. The linux version is 22.214.171.124
closed as not a real question by Wesley, Michael Hampton♦, Dave M, Khaled, mgorven Mar 20 '13 at 16:34
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
If you are writing a memory diagnostic routine you really need to stick your fingers into the kernel space to do it - it's pretty much impossible to do in user space (the VM space is relocatable and can be anywhere in physical memory - or not in physical memory at all).
For that matter there's no reason for you to write a memory diagnostic program - this is a solved problem and the tools that have been written (and tested over many years) will be superior to your first-attempt solution, so you should use them.