pub struct PageCacheEntry {
paddr: PhysicalAddress,
pin_count: AtomicUsize,
is_dirty: AtomicUsize,
}Expand description
Entry in the page cache representing a single cached page
Fields§
§paddr: PhysicalAddressPhysical address of the cached page
pin_count: AtomicUsizePin count - number of active short-term accesses Pages with pin_count > 0 cannot be evicted
is_dirty: AtomicUsizeDirty flag - true if page has been modified and needs writeback
Implementations§
Source§impl PageCacheEntry
impl PageCacheEntry
Sourcefn new(paddr: PhysicalAddress) -> Self
fn new(paddr: PhysicalAddress) -> Self
Create a new page cache entry
Sourcepub fn paddr(&self) -> PhysicalAddress
pub fn paddr(&self) -> PhysicalAddress
Get the physical address
Sourcefn mark_dirty(&self)
fn mark_dirty(&self)
Mark page as dirty