LWN.net Logo

Four-level page tables

Four-level page tables

Posted Oct 14, 2004 14:13 UTC (Thu) by ajax (subscriber, #7251)
Parent article: Four-level page tables

First line, below, needed for completeness.

  
pgd = pgd_offset(address);  
pmd = pmd_offset(pgd, address);  
pte = *pte_offset_map(pmd, address);  
page = pte_page(pte);  


(Log in to post comments)

Four-level page tables

Posted Mar 13, 2007 5:41 UTC (Tue) by amit2030 (guest, #27378) [Link]

From the kernel code, the first line is actually two lines:

struct mm_struct *mm = current->mm;
pgd = pgd_offset(mm, address);

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.