Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs202 fn prev(&mut self) -> &mut Rawlink<Self> in prev() method
293 prev: Rawlink<ObjectPage<'a>>, field
319 fn prev(&mut self) -> &mut Rawlink<Self> { in prev() method
320 &mut self.prev in prev()
381 *new_head.prev() = Rawlink::none(); in insert_front()
385 *new_head.prev() = Rawlink::none(); in insert_front()
386 *head.prev() = Rawlink::some(new_head); in insert_front()
398 match slab_page.prev().resolve_mut() { in remove_from_list()
402 Some(prev) => { in remove_from_list()
403 *prev.next() = match slab_page.next().resolve_mut() { in remove_from_list()
[all …]
H A Dsc.rs248 *page.prev() = Rawlink::none(); in refill()
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dlogset.rs43 let prev = self.inner.insert(key, value); in insert() localVariable
44 if let Some(prev) = prev { in insert()
45 if prev.ne(&cloned_value) { in insert()
48 prev, cloned_value in insert()
/DragonOS/kernel/src/sched/
H A Dmod.rs130 fn put_prev_task(rq: &mut CpuRunQueue, prev: Arc<ProcessControlBlock>); in put_prev_task()
591 let prev = self.nr_running; in add_nr_running() localVariable
593 self.nr_running = prev + nr_running; in add_nr_running()
594 if prev < 2 && self.nr_running >= 2 && !self.overload { in add_nr_running()
660 pub fn pick_next_task(&mut self, prev: Arc<ProcessControlBlock>) -> Arc<ProcessControlBlock> { in pick_next_task()
661 if likely(prev.sched_info().policy() >= SchedPolicy::CFS) in pick_next_task()
664 let p = CompletelyFairScheduler::pick_next_task(self, Some(prev.clone())); in pick_next_task()
677 match prev.sched_info().policy() { in pick_next_task()
680 SchedPolicy::CFS => CompletelyFairScheduler::put_prev_task(self, prev), in pick_next_task()
681 SchedPolicy::IDLE => IdleScheduler::put_prev_task(self, prev), in pick_next_task()
[all …]
H A Dfair.rs1054 pub fn put_prev_entity(&mut self, prev: Arc<FairSchedEntity>) { in put_prev_entity()
1055 if prev.on_rq() { in put_prev_entity()
1059 if prev.on_rq() { in put_prev_entity()
1060 self.inner_enqueue_entity(&prev); in put_prev_entity()
1709 prev: Option<Arc<ProcessControlBlock>>, in pick_next_task()
1716 if prev.is_none() in pick_next_task()
1717 || (prev.is_some() && prev.as_ref().unwrap().sched_info().policy() != SchedPolicy::CFS) in pick_next_task()
1719 if let Some(prev) = prev { in pick_next_task()
1720 match prev.sched_info().policy() { in pick_next_task()
1724 SchedPolicy::IDLE => IdleScheduler::put_prev_task(rq, prev), in pick_next_task()
[all …]
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs164 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process()
171 Self::switch_process_fpu(&prev, &next); in switch_process()
172 Self::switch_local_context(&prev, &next); in switch_process()
186 let prev_arch = SpinLockGuard::leak(prev.arch_info_irqsave()) as *mut ArchPCBInfo; in switch_process()
191 PROCESS_SWITCH_RESULT.as_mut().unwrap().get_mut().prev_pcb = Some(prev); in switch_process()
199 fn switch_process_fpu(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_process_fpu()
200 let prev_regs = unsafe { Self::task_trapframe(prev) }; in switch_process_fpu()
203 prev.arch_info_irqsave().fp_state.save(prev_regs); in switch_process_fpu()
208 fn switch_local_context(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_local_context()
209 prev.arch_info_irqsave().local_context = *local_context().get(); in switch_local_context()
[all …]
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs368 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process()
372 prev.arch_info_irqsave().save_fp_state(); in switch_process()
377 prev.arch_info_irqsave().save_fsbase(); in switch_process()
381 Self::switch_gsbase(&prev, &next); in switch_process()
394 let prev_arch = SpinLockGuard::leak(prev.arch_info_irqsave()) as *mut ArchPCBInfo; in switch_process()
407 PROCESS_SWITCH_RESULT.as_mut().unwrap().get_mut().prev_pcb = Some(prev); in switch_process()
415 unsafe fn switch_gsbase(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_gsbase()
417 prev.arch_info_irqsave().save_gsbase(); in switch_gsbase()
427 unsafe extern "sysv64" fn switch_to_inner(prev: *mut ArchPCBInfo, next: *mut ArchPCBInfo) { in switch_to_inner()
/DragonOS/kernel/src/smp/cpu/
H A Dmod.rs119 if let Some(prev) = p.possible_cpus.set(cpu, value) { in set_possible_cpu()
120 if prev != value { in set_possible_cpu()
149 if let Some(prev) = p.present_cpus.set(cpu, value) { in set_present_cpu()
150 if prev != value { in set_present_cpu()
/DragonOS/kernel/crates/bitmap/src/
H A Dtraits.rs40 let prev = *bits & mask; localVariable
46 prev != 0
/DragonOS/kernel/src/time/
H A Dtimer.rs377 let prev = TIMER_JIFFIES.fetch_add(add_jiffies, Ordering::SeqCst); in update_timer_jiffies() localVariable
382 return prev + add_jiffies; in update_timer_jiffies()
/DragonOS/kernel/src/mm/
H A Ducontext.rs593 if let Some(before) = split_result.prev { in munmap()
648 if let Some(before) = split_result.prev { in mprotect()
706 if let Some(before) = split_result.prev { in madvise()
1331 pub prev: Option<Arc<LockedVMA>>, field
1338 prev: Option<Arc<LockedVMA>>, in new()
1343 prev, in new()
/DragonOS/kernel/src/libs/
H A Drbtree.rs196 fn prev(self) -> NodePtr<K, V> { in prev() method
652 let prev = self.tail.prev(); in next_back() localVariable
655 self.tail = prev; in next_back()
727 self.tail = self.tail.prev(); in next_back()
802 self.tail = self.tail.prev(); in next_back()
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md11 &emsp;&emsp;初始化一个List结构体,使其prev和next指针指向自身
/DragonOS/kernel/src/syscall/
H A Dmod.rs69 let prev = INIT_FLAG.swap(true, Ordering::SeqCst); in init() localVariable
70 if prev { in init()