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

Function pmap_unuse_pt2

freebsd/arm/arm/pmap-v6.c:2723–2734  ·  view source on GitHub ↗

* After removing a L2 page table entry, this routine is used to * conditionally free the page, and manage the hold/wire counts. */

Source from the content-addressed store, hash-verified

2721 * conditionally free the page, and manage the hold/wire counts.
2722 */
2723static boolean_t
2724pmap_unuse_pt2(pmap_t pmap, vm_offset_t va, struct spglist *free)
2725{
2726 pt1_entry_t pte1;
2727 vm_page_t mpte;
2728
2729 if (va >= VM_MAXUSER_ADDRESS)
2730 return (FALSE);
2731 pte1 = pte1_load(pmap_pte1(pmap, va));
2732 mpte = PHYS_TO_VM_PAGE(pte1_link_pa(pte1));
2733 return (pmap_unwire_pt2(pmap, va, mpte, free));
2734}
2735
2736/*************************************
2737 *

Callers 4

pmap_pv_reclaimFunction · 0.85
pmap_remove_pte2Function · 0.85
pmap_remove_allFunction · 0.85
pmap_remove_pte2_quickFunction · 0.85

Calls 5

pte1_loadFunction · 0.85
pmap_pte1Function · 0.85
PHYS_TO_VM_PAGEFunction · 0.85
pte1_link_paFunction · 0.85
pmap_unwire_pt2Function · 0.85

Tested by

no test coverage detected