Home
last modified time | relevance | path

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

/DragonOS/kernel/src/libs/
H A Dcpumask.rs9 bmp: AllocBitmap, field
15 let bmp = AllocBitmap::new(PerCpu::MAX_CPU_NUM as usize); in new() localVariable
16 Self { bmp } in new()
36 self.bmp in first()
43 self.bmp in first_zero()
50 self.bmp in last()
57 self.bmp in next_index()
64 self.bmp in next_zero_index()
70 self.bmp.set(cpu.data() as usize, value) in set()
74 self.bmp.get(cpu.data() as usize) in get()
[all …]
/DragonOS/kernel/src/mm/
H A Dno_init.rs48 bmp: StaticBitmap<{ Self::EARLY_REMAP_PAGES_NUM }>, field
59 bmp: StaticBitmap::new(), in new()
69 if let Some(index) = self.bmp.first_false_index() { in allocate_page()
70 self.bmp.set(index, true); in allocate_page()
89 assert!(self.bmp.get(index).unwrap()); in free_page()
90 self.bmp.set(index, false); in free_page()