MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / new

Method new

easy-fs/src/bitmap.rs:21–26  ·  view source on GitHub ↗
(start_block_id: usize, blocks: usize)

Source from the content-addressed store, hash-verified

19
20impl Bitmap {
21 pub fn new(start_block_id: usize, blocks: usize) -> Self {
22 Self {
23 start_block_id,
24 blocks,
25 }
26 }
27
28 pub fn alloc(&self, block_device: &Arc<dyn BlockDevice>) -> Option<usize> {
29 for block_id in 0..self.blocks {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected