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

Function pmap_insert_pt_page

freebsd/i386/i386/pmap.c:1934–1941  ·  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

1932 * If "promoted" is false, then the page table page "mpte" must be zero filled.
1933 */
1934static __inline int
1935pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte, bool promoted)
1936{
1937
1938 PMAP_LOCK_ASSERT(pmap, MA_OWNED);
1939 mpte->valid = promoted ? VM_PAGE_BITS_ALL : 0;
1940 return (vm_radix_insert(&pmap->pm_root, mpte));
1941}
1942
1943/*
1944 * Removes the page table page mapping the specified virtual address from the

Callers 3

__CONCAT(PMTYPE, init)Function · 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