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

Function pmap_remove_pt_page

freebsd/amd64/amd64/pmap.c:3937–3943  ·  view source on GitHub ↗

* Removes the page table page mapping the specified virtual address from the * specified pmap's collection of idle page table pages, and returns it. * Otherwise, returns NULL if there is no page table page corresponding to the * specified virtual address. */

Source from the content-addressed store, hash-verified

3935 * specified virtual address.
3936 */
3937static __inline vm_page_t
3938pmap_remove_pt_page(pmap_t pmap, vm_offset_t va)
3939{
3940
3941 PMAP_LOCK_ASSERT(pmap, MA_OWNED);
3942 return (vm_radix_remove(&pmap->pm_root, pmap_pde_pindex(va)));
3943}
3944
3945/*
3946 * Decrements a page table page's reference count, which is used to record the

Callers 4

pmap_demote_pde_lockedFunction · 0.70
pmap_remove_kernel_pdeFunction · 0.70
pmap_remove_pdeFunction · 0.70
pmap_remove_pagesFunction · 0.70

Calls 2

vm_radix_removeFunction · 0.85
pmap_pde_pindexFunction · 0.85

Tested by

no test coverage detected