i\'m trying to navigate the page tables for a process in linux. In a kernel module i realized the following function:
static struct page *walk_page_table(uns
pte_unmap(ptep);
is missing just before the label out. Try to change the code in this way:
... page = pte_page(pte); if (page) printk(KERN_INFO "page frame struct is @ %p", page); pte_unmap(ptep); out: