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

Function pmap_unuse_pt

freebsd/mips/mips/pmap.c:1067–1077  ·  view source on GitHub ↗

* After removing a page table entry, this routine is used to * conditionally free the page, and manage the reference count. */

Source from the content-addressed store, hash-verified

1065 * conditionally free the page, and manage the reference count.
1066 */
1067static int
1068pmap_unuse_pt(pmap_t pmap, vm_offset_t va, pd_entry_t pde)
1069{
1070 vm_page_t mpte;
1071
1072 if (va >= VM_MAXUSER_ADDRESS)
1073 return (0);
1074 KASSERT(pde != 0, ("pmap_unuse_pt: pde != 0"));
1075 mpte = PHYS_TO_VM_PAGE(MIPS_DIRECT_TO_PHYS(pde));
1076 return (pmap_unwire_ptp(pmap, va, mpte));
1077}
1078
1079void
1080pmap_pinit0(pmap_t pmap)

Callers 4

pmap_pv_reclaimFunction · 0.70
pmap_remove_pteFunction · 0.70
pmap_remove_allFunction · 0.70
pmap_remove_pagesFunction · 0.70

Calls 2

PHYS_TO_VM_PAGEFunction · 0.85
pmap_unwire_ptpFunction · 0.70

Tested by

no test coverage detected