Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs27 total: 0,
42 total: u64, field
122 self.total -= (just_reclaimed * OBJECT_PAGE_SIZE) as u64; in try_reclaim_base_pages()
153 SlabUsage::new(self.total, free_num) in usage()
198 self.total += OBJECT_PAGE_SIZE as u64; in refill()
209 total: u64, field
216 pub fn new(total: u64, free: u64) -> Self { in new()
217 Self { total, free } in new()
220 pub fn total(&self) -> u64 { in total() method
221 self.total in total()
[all …]
/DragonOS/kernel/src/sched/
H A Dcputime.rs15 let mut total; in irq_time_read() localVariable
19 total = irqtime.total; in irq_time_read()
26 total in irq_time_read()
31 pub total: u64, field
41 self.total += delta; in account_delta()
/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs283 total: PageFrameCount, field
291 pub fn new(used: PageFrameCount, total: PageFrameCount) -> Self { in new()
292 return Self { used, total }; in new()
300 return self.total - self.used; in free()
303 pub fn total(&self) -> PageFrameCount { in total() method
304 return self.total; in total()
H A Dbump.rs180 let mut total = 0; in usage() localVariable
189 total += (area_end - area_base) >> MMA::PAGE_SHIFT; in usage()
200 let frame = PageFrameUsage::new(PageFrameCount::new(used), PageFrameCount::new(total)); in usage()
H A Dbuddy.rs71 total: PageFrameCount, field
82 let total_memory = bump_allocator.usage().total(); in new()
103 total: PageFrameCount::new(0), in new()
181 allocator.total = total_memory; in new()
620 PageFrameUsage::new(self.total - free, self.total) in usage()
/DragonOS/kernel/src/syscall/
H A Dmisc.rs45 sysinfo.totalram = mem.total().bytes() as u64; in sysinfo()
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs252 &mut format!("MemTotal:\t{} kB\n", usage.total().bytes() >> 10) in open_meminfo()