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

Function pmap_abort_ptp

freebsd/amd64/amd64/pmap.c:4047–4062  ·  view source on GitHub ↗

* Release a page table page reference after a failed attempt to create a * mapping. */

Source from the content-addressed store, hash-verified

4045 * mapping.
4046 */
4047static void
4048pmap_abort_ptp(pmap_t pmap, vm_offset_t va, vm_page_t mpte)
4049{
4050 struct spglist free;
4051
4052 SLIST_INIT(&free);
4053 if (pmap_unwire_ptp(pmap, va, mpte, &free)) {
4054 /*
4055 * Although "va" was never mapped, paging-structure caches
4056 * could nonetheless have entries that refer to the freed
4057 * page table pages. Invalidate those entries.
4058 */
4059 pmap_invalidate_page(pmap, va);
4060 vm_page_free_pages_toq(&free, true);
4061 }
4062}
4063
4064void
4065pmap_pinit0(pmap_t pmap)

Callers 3

pmap_enter_pdeFunction · 0.70
pmap_enter_quick_lockedFunction · 0.70
pmap_copyFunction · 0.70

Calls 3

vm_page_free_pages_toqFunction · 0.85
pmap_unwire_ptpFunction · 0.70
pmap_invalidate_pageFunction · 0.70

Tested by

no test coverage detected