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

Function

Description

mk_pte

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

pte_page

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).

pgd_free

pud_free pmd_free pte_free

Free the memory occupied by the page table.

set_pgd

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