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

Function pmap_unwire_ptp

freebsd/amd64/amd64/pmap.c:3951–3961  ·  view source on GitHub ↗

* Decrements a page table page's reference count, which is used to record the * number of valid page table entries within the page. If the reference count * drops to zero, then the page table page is unmapped. Returns TRUE if the * page table page was unmapped and FALSE otherwise. */

Source from the content-addressed store, hash-verified

3949 * page table page was unmapped and FALSE otherwise.
3950 */
3951static inline boolean_t
3952pmap_unwire_ptp(pmap_t pmap, vm_offset_t va, vm_page_t m, struct spglist *free)
3953{
3954
3955 --m->ref_count;
3956 if (m->ref_count == 0) {
3957 _pmap_unwire_ptp(pmap, va, m, free);
3958 return (TRUE);
3959 } else
3960 return (FALSE);
3961}
3962
3963static void
3964_pmap_unwire_ptp(pmap_t pmap, vm_offset_t va, vm_page_t m, struct spglist *free)

Callers 4

_pmap_unwire_ptpFunction · 0.70
pmap_unuse_ptFunction · 0.70
pmap_abort_ptpFunction · 0.70
pmap_removeFunction · 0.70

Calls 1

_pmap_unwire_ptpFunction · 0.70

Tested by

no test coverage detected