Home
last modified time | relevance | path

Searched defs:ProcessControlBlock (Results 1 – 20 of 20) sorted by relevance

/DragonOS/kernel/src/sched/
H A Didle.rs8 _pcb: alloc::sync::Arc<crate::process::ProcessControlBlock>, in enqueue()
16 _pcb: alloc::sync::Arc<crate::process::ProcessControlBlock>, in dequeue()
25 _pcb: &alloc::sync::Arc<crate::process::ProcessControlBlock>, in check_preempt_currnet()
33 ) -> Option<alloc::sync::Arc<crate::process::ProcessControlBlock>> { in pick_task()
42 _pcb: Option<alloc::sync::Arc<crate::process::ProcessControlBlock>>, in pick_next_task()
43 ) -> Option<alloc::sync::Arc<crate::process::ProcessControlBlock>> { in pick_next_task()
51 _pcb: alloc::sync::Arc<crate::process::ProcessControlBlock>, in tick()
57 fn task_fork(_pcb: alloc::sync::Arc<crate::process::ProcessControlBlock>) { in task_fork()
63 _prev: alloc::sync::Arc<crate::process::ProcessControlBlock>, in put_prev_task()
H A Dmod.rs99 fn enqueue(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, flags: EnqueueFlag); in enqueue()
102 fn dequeue(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, flags: DequeueFlag); in dequeue()
110 pcb: &Arc<ProcessControlBlock>, in check_preempt_currnet()
116 fn pick_task(rq: &mut CpuRunQueue) -> Option<Arc<ProcessControlBlock>>; in pick_task()
121 pcb: Option<Arc<ProcessControlBlock>>, in pick_next_task()
122 ) -> Option<Arc<ProcessControlBlock>>; in pick_next_task()
125 fn tick(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, queued: bool); in tick()
128 fn task_fork(pcb: Arc<ProcessControlBlock>); in task_fork()
130 fn put_prev_task(rq: &mut CpuRunQueue, prev: Arc<ProcessControlBlock>); in put_prev_task()
399 pub fn enqueue_task(&mut self, pcb: Arc<ProcessControlBlock>, flags: EnqueueFlag) { in enqueue_task()
[all …]
H A Dcputime.rs59 pub fn irqtime_account_irq(_pcb: Arc<ProcessControlBlock>) { in irqtime_account_irq()
75 _pcb: &Arc<ProcessControlBlock>, in irqtime_account_process_tick()
H A Dfair.rs124 pub fn pcb(&self) -> Arc<ProcessControlBlock> { in pcb()
128 pub fn set_pcb(&mut self, pcb: Weak<ProcessControlBlock>) { in set_pcb()
1409 pcb: Arc<crate::process::ProcessControlBlock>, in enqueue()
1471 pcb: Arc<crate::process::ProcessControlBlock>, in dequeue()
1565 pcb: &Arc<crate::process::ProcessControlBlock>, in check_preempt_currnet()
1641 fn pick_task(rq: &mut CpuRunQueue) -> Option<Arc<crate::process::ProcessControlBlock>> { in pick_task()
1676 fn tick(_rq: &mut CpuRunQueue, pcb: Arc<crate::process::ProcessControlBlock>, queued: bool) { in tick()
1689 fn task_fork(pcb: Arc<ProcessControlBlock>) { in task_fork()
1709 prev: Option<Arc<ProcessControlBlock>>, in pick_next_task()
1710 ) -> Option<Arc<ProcessControlBlock>> { in pick_next_task()
[all …]
H A Dpelt.rs167 pub fn post_init_entity_util_avg(pcb: &Arc<ProcessControlBlock>) { in post_init_entity_util_avg()
/DragonOS/kernel/src/process/
H A Dfork.rs210 new_pcb: &Arc<ProcessControlBlock>, in copy_flags()
237 current_pcb: &Arc<ProcessControlBlock>, in copy_mm()
238 new_pcb: &Arc<ProcessControlBlock>, in copy_mm()
264 current_pcb: &Arc<ProcessControlBlock>, in copy_namespaces()
265 new_pcb: &Arc<ProcessControlBlock>, in copy_namespaces()
292 current_pcb: &Arc<ProcessControlBlock>, in copy_files()
293 new_pcb: &Arc<ProcessControlBlock>, in copy_files()
313 current_pcb: &Arc<ProcessControlBlock>, in copy_sighand()
314 new_pcb: &Arc<ProcessControlBlock>, in copy_sighand()
343 current_pcb: &Arc<ProcessControlBlock>, in copy_process()
[all …]
H A Dmod.rs205 pub fn find(pid: Pid) -> Option<Arc<ProcessControlBlock>> { in find()
218 pub fn add_pcb(pcb: Arc<ProcessControlBlock>) { in add_pcb()
498 pub fn kick(pcb: &Arc<ProcessControlBlock>) { in kick()
612 pub struct ProcessControlBlock { struct
614 pid: Pid,
616 tgid: Pid,
618 thread_pid: Arc<RwLock<PidStrcut>>,
619 basic: RwLock<ProcessBasicInfo>,
643 parent_pcb: RwLock<Weak<ProcessControlBlock>>, argument
645 real_parent_pcb: RwLock<Weak<ProcessControlBlock>>, argument
[all …]
H A Dkthread.rs178 pub fn poll_result(&self) -> Option<Arc<ProcessControlBlock>> { in poll_result()
208 pub unsafe fn set_create_ok(&self, pcb: Arc<ProcessControlBlock>) { in set_create_ok()
339 pub fn create(func: KernelThreadClosure, name: String) -> Option<Arc<ProcessControlBlock>> { in create()
366 ) -> Option<Arc<ProcessControlBlock>> { in create_and_run()
H A Dresource.rs140 impl ProcessControlBlock { impl
H A Dexit.rs181 child_pcb: Arc<ProcessControlBlock>, in do_waitpid()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs102 current_pcb: &Arc<ProcessControlBlock>, in copy_thread()
103 new_pcb: &Arc<ProcessControlBlock>, in copy_thread()
164 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process()
199 fn switch_process_fpu(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_process_fpu()
208 fn switch_local_context(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_local_context()
312 impl ProcessControlBlock { impl
323 let p = stack_base.data() as *const *const ProcessControlBlock; in arch_current_pcb() constant
/DragonOS/kernel/src/ipc/
H A Dsignal.rs22 pcb: &Arc<ProcessControlBlock>, in signal_pending_state()
100 pcb: Arc<ProcessControlBlock>, in send_signal()
172 fn complete_signal(&self, pcb: Arc<ProcessControlBlock>, pt: PidType) { in complete_signal()
272 fn prepare_sianal(&self, pcb: Arc<ProcessControlBlock>, _force: bool) -> bool { in prepare_sianal()
313 fn signal_wake_up(pcb: Arc<ProcessControlBlock>, _guard: SpinLockGuard<SignalStruct>, fatal: bool) { in signal_wake_up()
363 pub fn flush_signal_handlers(pcb: Arc<ProcessControlBlock>, force_default: bool) { in flush_signal_handlers()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs267 impl ProcessControlBlock { impl
276 let p = stack_base.data() as *const *const ProcessControlBlock; in arch_current_pcb() constant
300 current_pcb: &Arc<ProcessControlBlock>, in copy_thread()
301 new_pcb: &Arc<ProcessControlBlock>, in copy_thread()
368 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process()
415 unsafe fn switch_gsbase(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_gsbase()
H A Dsyscall.rs66 pcb: &Arc<ProcessControlBlock>, in do_arch_prctl_64()
/DragonOS/kernel/src/namespaces/
H A Dmod.rs55 pcb: &Arc<ProcessControlBlock>, in create_new_namespaces()
H A Dnamespace.rs95 pub fn switch_task_namespace(pcb: Arc<ProcessControlBlock>, new_nsproxy: NsProxy) { in switch_task_namespace()
/DragonOS/kernel/src/filesystem/vfs/
H A Dutils.rs41 pcb: &Arc<ProcessControlBlock>, in user_path_at()
/DragonOS/kernel/src/smp/cpu/
H A Dmod.rs69 pub const fn thread(&self) -> &Option<Arc<ProcessControlBlock>> { in thread()
/DragonOS/kernel/src/exception/
H A Dirqdesc.rs741 pub fn thread(&self) -> Option<Arc<ProcessControlBlock>> { in thread()
745 pub fn set_thread(&mut self, thread: Option<Arc<ProcessControlBlock>>) { in set_thread()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs745 pub fn exit_robust_list(pcb: Arc<ProcessControlBlock>) { in exit_robust_list()