Home
last modified time | relevance | path

Searched refs:ProcessFlags (Results 1 – 15 of 15) sorted by relevance

/DragonOS/kernel/src/process/
H A Dutils.rs3 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 Dkthread.rs25 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 Dfork.rs15 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 Dmod.rs320 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 Didle.rs8 process::{ProcessFlags, ProcessManager},
17 if pcb.flags().contains(ProcessFlags::NEED_SCHEDULE) { in arch_idle_func()
H A Dmod.rs22 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 Dhandle.rs8 ProcessFlags,
45 if (current_pcb_flags().contains(ProcessFlags::NEED_SCHEDULE)) in x86_64_do_irq()
/DragonOS/kernel/src/init/
H A Dinitial_kthread.rs16 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 Dsignal.rs11 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 Dmod.rs34 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 Dfair.rs10 use crate::process::ProcessFlags;
1599 if curr.flags().contains(ProcessFlags::NEED_SCHEDULE) { in check_preempt_currnet()
/DragonOS/kernel/src/exception/
H A Dhandle.rs11 process::{ProcessFlags, ProcessManager},
221 if thread.flags().contains(ProcessFlags::EXITING) { in do_irq_wake_thread()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs23 switch_finish_hook, KernelStack, ProcessControlBlock, ProcessFlags, ProcessManager,
140 if new_pcb.flags().contains(ProcessFlags::KTHREAD) { in copy_thread()
/DragonOS/kernel/src/libs/
H A Delf.rs32 ProcessFlags, ProcessManager,
677 .contains(ProcessFlags::RANDOMIZE) in load()
/DragonOS/kernel/src/syscall/
H A Dmod.rs18 ProcessFlags, ProcessManager,
1222 .contains(ProcessFlags::NEED_SCHEDULE) in handle()