Struct os::mm::block_cache_block::BufferCache
source · [−]Fields
priority: usizeEvery time kernel tried to alloc this buffer this number will increase 1(at most 3) When no free cache lefted this number will decrease 1(at least 0) When it’s 0 and Arc’s strong count is 1, this buffer will be writed back
block_id: usizeIf block_id is usize::Max, we assume it is an unused buffer.
buffer: &'static mut [u8; 512]