Searched refs:block_size (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | slab.rs | 8 block_size: usize, field 17 pub unsafe fn new(start_addr: usize, slab_size: usize, block_size: usize) -> Slab { in new() 18 let blocks_num = slab_size / block_size; in new() 20 block_size: block_size, in new() 21 free_block_list: FreeBlockList::new(start_addr, block_size, blocks_num), in new() 35 let num_of_blocks = slab_size / self.block_size; in grow() 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() 70 let new_block = (start_addr + i * block_size) as *mut FreeBlock; in new()
|
D | buddy.rs | 157 let block_size = 1usize << i; in new() localVariable 171 paddr += block_size; in new() 188 paddr += block_size; in new()
|
/DragonOS-0.1.8/kernel/src/io/ |
D | device.rs | 100 fn block_size(&self) -> usize; in block_size() method
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 482 fn block_size(&self) -> usize { in block_size() method
|