Thread (4 messages) 4 messages, 2 authors, 2016-02-08

Virtual and physical page address

From: Mohammad A Khasawneh <hidden>
Date: 2016-02-07 21:24:08

Hello everyone,

I am attempting to dump the page table of a process in terms of virtual
addresses and the corresponding physical addresses. I am looking for
information whether the pointers I am using are correct for this purpose:

1. Can I say that pte_page(pte_t) returns the virtual address of the page
that the PTE points at?

2. can I say that page_to_phys(struct page) returns the physical address of
that same entry?

Thank you,
Mohammad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160207/97f36a47/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help