Creating and Manipulating Entries

Table 3-4 lists all functions for creating new page table entries.

Table 3-4: Functions for Creating New Page Table Entries




Creates a pte entry; a page instance and the desired page access permissions must be passed as parameters.


Yields the address of the page instance belonging to the page described by the page table entry.

pgd_alloc pud_alloc pmd_alloc pte_alloc

Reserve and initialize memory to hold a complete page table (not just a single entry).


pud_free pmd_free pte_free

Free the memory occupied by the page table.


set_pud set_pmd set_pte

Set the value of an entry in a page table.

The functions in the table must be implemented by all architectures to enable memory management code to create and destroy page tables.

Continue reading here: Initialization of Memory Management

Was this article helpful?

0 0