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

Function pmap_unuse_pt

freebsd/amd64/amd64/pmap.c:4030–4041  ·  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

4028 * conditionally free the page, and manage the reference count.
4029 */
4030static int
4031pmap_unuse_pt(pmap_t pmap, vm_offset_t va, pd_entry_t ptepde,
4032 struct spglist *free)
4033{
4034 vm_page_t mpte;
4035
4036 if (va >= VM_MAXUSER_ADDRESS)
4037 return (0);
4038 KASSERT(ptepde != 0, ("pmap_unuse_pt: ptepde != 0"));
4039 mpte = PHYS_TO_VM_PAGE(ptepde & PG_FRAME);
4040 return (pmap_unwire_ptp(pmap, va, mpte, free));
4041}
4042
4043/*
4044 * Release a page table page reference after a failed attempt to create a

Callers 5

reclaim_pv_chunk_domainFunction · 0.70
pmap_remove_pdeFunction · 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