linux - Getting physical address from /proc/[pid]/pagemap -


I am told that I use a code related to a virtual address using / proc / [pid] / Find the address PageMap .

I've read that this PageMap file is an array of 64-bit entries, where the bits related to the page frame number are 0-54. I do not know how to translate this leap into a virtual translation for physical partly, I do not know how to find the entry I want in this file; Nobody decides how they are indexed.

Besides, I do not know whether PFN is virtual or physical and I do not know what to do with PFN, how can I move forward?

Thanks

Split VA to page size (normally 4096) Use as offset in / proc / self / pagemap. Then take that number (page), multiply by pages (4096), and offset by your VA% 4094.

Larry


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -