Struct os::mm::block_cache_block::BlockCacheManager
source · [−]pub struct BlockCacheManager {
_hold: Vec<Arc<FrameTracker>>,
cache_pool: Vec<Arc<Mutex<BufferCache>>>,
}
Fields
_hold: Vec<Arc<FrameTracker>>
just hold all pages alloced
cache_pool: Vec<Arc<Mutex<BufferCache>>>
Implementations
fn try_get_block_cache(
&self,
block_id: usize,
inner_cache_id: usize
) -> Option<Arc<Mutex<BufferCache>>>
Trait Implementations
type CacheType = BufferCache
Try to get the block cache and return None
if not found. Read more
Attempt to get block cache from the cache. If failed, the manager should try to copy the block from sdcard. Read more