Home
last modified time | relevance | path

Searched refs:num_of_blocks (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dslab.rs35 let num_of_blocks = slab_size / self.block_size; in grow() localVariable
37 unsafe { FreeBlockList::new(start_addr, self.block_size, num_of_blocks) }; in grow()
66 unsafe fn new(start_addr: usize, block_size: usize, num_of_blocks: usize) -> FreeBlockList { in new()
68 for i in (0..num_of_blocks).rev() { in new()