/DragonOS/kernel/src/process/ |
H A D | utils.rs | 3 use super::{ProcessFlags, __PROCESS_MANAGEMENT_INIT_DONE}; 5 pub fn current_pcb_flags() -> ProcessFlags { in current_pcb_flags() 7 return ProcessFlags::empty(); in current_pcb_flags()
|
H A D | kthread.rs | 25 use super::{fork::CloneFlags, Pid, ProcessControlBlock, ProcessFlags}; 282 .insert(ProcessFlags::KTHREAD); in init_stage1() 296 .remove(ProcessFlags::KTHREAD); in init_stage1() 305 .contains(ProcessFlags::KTHREAD)); in init_stage2() 382 if !pcb.flags().contains(ProcessFlags::KTHREAD) { in stop() 429 if !pcb.flags().contains(ProcessFlags::KTHREAD) { in should_stop() 459 current_pcb.flags().insert(ProcessFlags::KTHREAD); in kthread_daemon()
|
H A D | fork.rs | 15 process::ProcessFlags, 213 new_pcb.flags().insert(ProcessFlags::VFORK); in copy_flags() 402 if current_pcb.flags().contains(ProcessFlags::KTHREAD) { in copy_process()
|
H A D | mod.rs | 320 pcb.flags().insert(ProcessFlags::NEED_SCHEDULE); in mark_sleep() 344 pcb.flags().insert(ProcessFlags::NEED_SCHEDULE); in mark_stop() 590 pub struct ProcessFlags: usize { 623 flags: LockFreeFlags<ProcessFlags>, 703 return matches!(self.flags(), &mut ProcessFlags::KTHREAD); in is_kthread() 723 let flags = unsafe { LockFreeFlags::new(ProcessFlags::empty()) }; in do_create_pcb() 829 pub fn flags(&self) -> &mut ProcessFlags { in flags() argument
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | idle.rs | 8 process::{ProcessFlags, ProcessManager}, 17 if pcb.flags().contains(ProcessFlags::NEED_SCHEDULE) { in arch_idle_func()
|
H A D | mod.rs | 22 KernelStack, ProcessControlBlock, ProcessFlags, ProcessManager, PROCESS_SWITCH_RESULT, 346 if new_pcb.flags().contains(ProcessFlags::KTHREAD) { in copy_thread()
|
/DragonOS/kernel/src/arch/x86_64/interrupt/ |
H A D | handle.rs | 8 ProcessFlags, 45 if (current_pcb_flags().contains(ProcessFlags::NEED_SCHEDULE)) in x86_64_do_irq()
|
/DragonOS/kernel/src/init/ |
H A D | initial_kthread.rs | 16 exec::ProcInitInfo, kthread::KernelThreadMechanism, stdio::stdio_init, ProcessFlags, 72 current_pcb.flags().remove(ProcessFlags::KTHREAD); in switch_to_user()
|
/DragonOS/kernel/src/ipc/ |
H A D | signal.rs | 11 process::{pid::PidType, Pid, ProcessControlBlock, ProcessFlags, ProcessManager}, 126 if matches!(self, Signal::SIGKILL) || pcb.flags().contains(ProcessFlags::KTHREAD) { in send_signal() 227 if pcb.flags().contains(ProcessFlags::EXITING) { in wants_signal()
|
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 34 process::{ProcessControlBlock, ProcessFlags, ProcessManager, ProcessState, SchedInfo}, 483 && self.current().flags().contains(ProcessFlags::NEED_SCHEDULE) in check_preempt_currnet() 635 if unlikely(current.flags().contains(ProcessFlags::NEED_SCHEDULE)) { in resched_current() 651 .insert(ProcessFlags::NEED_SCHEDULE); in resched_current() 904 prev.flags().remove(ProcessFlags::NEED_SCHEDULE); in __schedule()
|
H A D | fair.rs | 10 use crate::process::ProcessFlags; 1599 if curr.flags().contains(ProcessFlags::NEED_SCHEDULE) { in check_preempt_currnet()
|
/DragonOS/kernel/src/exception/ |
H A D | handle.rs | 11 process::{ProcessFlags, ProcessManager}, 221 if thread.flags().contains(ProcessFlags::EXITING) { in do_irq_wake_thread()
|
/DragonOS/kernel/src/arch/riscv64/process/ |
H A D | mod.rs | 23 switch_finish_hook, KernelStack, ProcessControlBlock, ProcessFlags, ProcessManager, 140 if new_pcb.flags().contains(ProcessFlags::KTHREAD) { in copy_thread()
|
/DragonOS/kernel/src/libs/ |
H A D | elf.rs | 32 ProcessFlags, ProcessManager, 677 .contains(ProcessFlags::RANDOMIZE) in load()
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 18 ProcessFlags, ProcessManager, 1222 .contains(ProcessFlags::NEED_SCHEDULE) in handle()
|