Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs20 const MIN_ORDER: usize = 12; constant
67 free_area: [PhysAddr; (MAX_ORDER - MIN_ORDER) as usize],
88 let mut free_area: [PhysAddr; (MAX_ORDER - MIN_ORDER) as usize] = in new()
89 [PhysAddr::new(0); (MAX_ORDER - MIN_ORDER) as usize]; in new()
127 for i in MIN_ORDER..MAX_ORDER { in new()
129 if remain_pages.data() < (1 << (i - MIN_ORDER)) { in new()
149 remain_pages -= 1 << (i - MIN_ORDER); in new()
172 remain_pages -= 1 << (i - MIN_ORDER); in new()
189 remain_pages -= 1 << (i - MIN_ORDER); in new()
209 for i in (MIN_ORDER..MAX_ORDER).rev() { in new()
[all …]