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

Function pmap_abort_ptp

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

2015 * mapping.
2016 */
2017static void
2018pmap_abort_ptp(pmap_t pmap, vm_offset_t va, vm_page_t mpte)
2019{
2020 struct spglist free;
2021
2022 SLIST_INIT(&free);
2023 if (pmap_unwire_ptp(pmap, mpte, &free)) {
2024 /*
2025 * Although "va" was never mapped, paging-structure caches
2026 * could nonetheless have entries that refer to the freed
2027 * page table pages. Invalidate those entries.
2028 */
2029 pmap_invalidate_page_int(pmap, va);
2030 vm_page_free_pages_toq(&free, true);
2031 }
2032}
2033
2034/*
2035 * Initialize the pmap for the swapper process.

Callers 2

pmap_enter_quick_lockedFunction · 0.70
__CONCAT(PMTYPE, copy)Function · 0.70

Calls 3

pmap_invalidate_page_intFunction · 0.85
vm_page_free_pages_toqFunction · 0.85
pmap_unwire_ptpFunction · 0.70

Tested by

no test coverage detected