Searched refs:ProcessState (Results 1 – 7 of 7) sorted by relevance
/DragonOS/kernel/src/ipc/ |
H A D | pipe.rs | 11 process::ProcessState, 216 .wakeup(Some(ProcessState::Blocked(true))); in read_at() 261 .wakeup(Some(ProcessState::Blocked(true))); in read_at() 266 .wakeup(Some(ProcessState::Blocked(true))); in read_at() 323 .wakeup_all(Some(ProcessState::Blocked(true))); in close() 334 .wakeup_all(Some(ProcessState::Blocked(true))); in close() 372 .wakeup(Some(ProcessState::Blocked(true))); in write_at() 407 .wakeup(Some(ProcessState::Blocked(true))); in write_at() 412 .wakeup(Some(ProcessState::Blocked(true))); in write_at()
|
/DragonOS/kernel/src/process/ |
H A D | mod.rs | 234 writer.set_state(ProcessState::Runnable); in wakeup() 270 if let ProcessState::Stopped = state { in wakeup_stop() 273 if let ProcessState::Stopped = state { in wakeup_stop() 274 writer.set_state(ProcessState::Runnable); in wakeup_stop() 317 if !matches!(writer.state(), ProcessState::Exited(_)) { in mark_sleep() 318 writer.set_state(ProcessState::Blocked(interruptable)); in mark_sleep() 342 if !matches!(writer.state(), ProcessState::Exited(_)) { in mark_stop() 343 writer.set_state(ProcessState::Stopped); in mark_stop() 391 .set_state(ProcessState::Exited(exit_code)); in exit() 392 pcb.wait_queue.wakeup(Some(ProcessState::Blocked(true))); in exit() [all …]
|
H A D | exit.rs | 19 ProcessState, 187 ProcessState::Runnable => { in do_waitpid() 204 ProcessState::Blocked(_) | ProcessState::Stopped => { in do_waitpid() 228 ProcessState::Exited(status) => { in do_waitpid()
|
H A D | kthread.rs | 21 process::{ProcessManager, ProcessState}, 407 if let ProcessState::Exited(code) = pcb.sched_info().inner_lock_read_irqsave().state() { in stop()
|
/DragonOS/kernel/src/libs/ |
H A D | wait_queue.rs | 11 process::{ProcessControlBlock, ProcessManager, ProcessState}, 56 writer.set_state(ProcessState::Runnable); in finish_wait() 219 pub fn wakeup(&self, state: Option<ProcessState>) -> bool { in wakeup() 248 pub fn wakeup_all(&self, state: Option<ProcessState>) { in wakeup_all() argument
|
/DragonOS/kernel/src/mm/ |
H A D | fault.rs | 18 process::{ProcessManager, ProcessState}, 130 guard.set_state(ProcessState::Runnable); in handle_mm_fault()
|
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 34 process::{ProcessControlBlock, ProcessFlags, ProcessManager, ProcessState, SchedInfo}, 835 if let ProcessState::Exited(_) = prev.clone().sched_info().inner_lock_read_irqsave().state() { in __schedule()
|