MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pmap_insert_pt_page

Function pmap_insert_pt_page

freebsd/amd64/amd64/pmap.c:3922–3929  ·  view source on GitHub ↗

* Inserts the specified page table page into the specified pmap's collection * of idle page table pages. Each of a pmap's page table pages is responsible * for mapping a distinct range of virtual addresses. The pmap's collection is * ordered by this virtual address range. * * If "promoted" is false, then the page table page "mpte" must be zero filled. */

Source from the content-addressed store, hash-verified

3920 * If "promoted" is false, then the page table page "mpte" must be zero filled.
3921 */
3922static __inline int
3923pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte, bool promoted)
3924{
3925
3926 PMAP_LOCK_ASSERT(pmap, MA_OWNED);
3927 mpte->valid = promoted ? VM_PAGE_BITS_ALL : 0;
3928 return (vm_radix_insert(&pmap->pm_root, mpte));
3929}
3930
3931/*
3932 * Removes the page table page mapping the specified virtual address from the

Callers 3

pmap_initFunction · 0.70
pmap_promote_pdeFunction · 0.70
pmap_enter_pdeFunction · 0.70

Calls 1

vm_radix_insertFunction · 0.85

Tested by

no test coverage detected