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

Function pmap_pte_dirty

freebsd/arm64/arm64/pmap.c:708–724  ·  view source on GitHub ↗

* Checks if the PTE is dirty. */

Source from the content-addressed store, hash-verified

706 * Checks if the PTE is dirty.
707 */
708static inline int
709pmap_pte_dirty(pmap_t pmap, pt_entry_t pte)
710{
711
712 KASSERT((pte & ATTR_SW_MANAGED) != 0, ("pte %#lx is unmanaged", pte));
713
714 if (pmap->pm_stage == PM_STAGE1) {
715 KASSERT((pte & (ATTR_S1_AP_RW_BIT | ATTR_SW_DBM)) != 0,
716 ("pte %#lx is writeable and missing ATTR_SW_DBM", pte));
717
718 return ((pte & (ATTR_S1_AP_RW_BIT | ATTR_SW_DBM)) ==
719 (ATTR_S1_AP(ATTR_S1_AP_RW) | ATTR_SW_DBM));
720 }
721
722 return ((pte & ATTR_S2_S2AP(ATTR_S2_S2AP_WRITE)) ==
723 ATTR_S2_S2AP(ATTR_S2_S2AP_WRITE));
724}
725
726static __inline void
727pmap_resident_count_inc(pmap_t pmap, int count)

Callers 12

reclaim_pv_chunkFunction · 0.85
pmap_remove_l2Function · 0.85
pmap_remove_l3Function · 0.85
pmap_remove_l3_rangeFunction · 0.85
pmap_remove_allFunction · 0.85
pmap_protect_l2Function · 0.85
pmap_protectFunction · 0.85
pmap_enterFunction · 0.85
pmap_remove_pagesFunction · 0.85
pmap_ts_referencedFunction · 0.85
pmap_adviseFunction · 0.85
pmap_mincoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected