Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/
H A Dmmio_buddy.rs132 let mut list_guard = self.free_regions[exp2index(exp)].lock(); in give_back_block() localVariable
134 self.push_block(region, &mut list_guard); in give_back_block()
172 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in query_addr_region()
181 if list_guard.num_free == 0 { in query_addr_region()
203 self.split_block(region, e2, list_guard); in query_addr_region()
222 self.split_block(region, e2, list_guard); in query_addr_region()
235 if list_guard.num_free > 0 { in query_addr_region()
236 match self.pop_block(list_guard) { in query_addr_region()
274 list_guard, in query_addr_region()
286 if list_guard.num_free > 0 { in query_addr_region()
[all …]
/DragonOS/docs/kernel/memory_management/
H A Dmmio.md172 | __buddy_split(&self,region,exp,list_guard) | 将给定大小为$2^{exp}$的内存块一分为二,并插入内存…
173 | __query_addr_region(&self,exp,list_guard) | 从buddy中申请一块大小为$2^{exp}$的内存块 …
175 | __buddy_add_region_obj(&self,region,list_guard) | 往指定的地址空间链表中添加一个内存块 …
177 | __pop_buddy_block( &self, vaddr,exp,list_guard) | 寻找并弹出指定内存块的伙伴块 …
178 | __buddy_pop_region( &self, list_guard) | 从指定空闲链表中取出内存区域 …
179 | __buddy_merge(&self,exp,list_guard,high_list_guard) | 合并所有$2^{exp}$大小的内存块 …
/DragonOS/kernel/src/time/
H A Dclocksource.rs409 let mut list_guard = CLOCKSOURCE_LIST.lock(); in clocksource_enqueue() localVariable
410 let mut spilt_pos: usize = list_guard.len(); in clocksource_enqueue()
411 for (pos, ele) in list_guard.iter().enumerate() { in clocksource_enqueue()
417 let mut temp_list = list_guard.split_off(spilt_pos); in clocksource_enqueue()
419 list_guard.push_back(cs); in clocksource_enqueue()
420 list_guard.append(&mut temp_list); in clocksource_enqueue()
442 let mut list_guard = WATCHDOG_LIST.lock_irqsave(); in clocksource_enqueue_watchdog() localVariable
448 list_guard.push_back(cs); in clocksource_enqueue_watchdog()
463 let mut list_guard = WATCHDOG_LIST.lock_irqsave(); in clocksource_enqueue_watchdog() localVariable
464 list_guard.push_back(cs.clone()); in clocksource_enqueue_watchdog()
[all …]