Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 48) sorted by relevance

12

/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/
Dvirtual_console.rs38 pub state: VirtualConsoleInfo, field
149 state: VirtualConsoleInfo::new(0, 0), in new()
216 self.pos = self.cols * self.state.y + self.state.x; in init()
283 self.state.x = 0; in reset()
284 self.state.y = 0; in reset()
526 .con_putc(&self, i as u16, self.state.y as u32, self.state.x as u32); in add_softcursor()
543 self.state.y as u32, in hide_softcursor()
544 self.state.x as u32, in hide_softcursor()
562 self.state.x = 0; in gotoxy()
565 self.state.x = self.cols - 1; in gotoxy()
[all …]
/DragonOS-0.1.9/docs/kernel/sched/
Drust_waiting.md44 // 唤醒等待队列头部的进程(如果它的state & PROC_INTERRUPTIBLE 不为0)
47 // 唤醒等待队列头部的进程(如果它的state & PROC_UNINTERRUPTIBLE 不为0)
50 // 唤醒等待队列头部的进程(无论它的state是什么)
71   您可以使用`wakeup(state)`函数,唤醒等待队列中的第一个进程。如果这个进程的state与给定的state进行and操作之后,结果不为0,则唤醒它。
Dc_waiting.md67 …ue_wakeup(wait_queue_node_t * wait_queue_head, int64_t state);`函数,从指定的等待队列中,唤醒第一个挂起时的状态与指定的`state`…
127 …于在栈上的wait_node,您可以选择`wait_queue_wakeup_on_stack(wait_queue_head_t *q, int64_t state)`来唤醒队列里面的队列头节点。
Drt.md10    RTQueue是用来存放state为running的实时进程的调度队列,每个CPU维护一个RTQueue,主要使用Vec作为主要存储结构来实现。
/DragonOS-0.1.9/kernel/src/driver/base/platform/
Dplatform_device.rs160 let state = self.inner.lock().state; in is_initialized() localVariable
161 match state { in is_initialized()
173 let state = &mut self.inner.lock().state; in set_state() localVariable
174 *state = set_state; in set_state()
183 let state = self.inner.lock().state; in get_state() localVariable
184 return state; in get_state()
193 state: BusState, // 总线状态 field
211 state: BusState::NotInitialized, in new()
259 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
260 *self.kobj_state.write() = state; in set_kobj_state()
/DragonOS-0.1.9/kernel/src/exception/
Dirqdata.rs85 .state in is_level_type()
95 .state in is_wakeup_set()
194 state: IrqStatus::empty(), in new()
215 .state in clear_managed_shutdown()
221 self.inner.lock_irqsave().state.masked() in masked()
227 .state in set_masked()
238 .state in set_inprogress()
245 .state in clear_inprogress()
250 self.inner.lock_irqsave().state.disabled() in disabled()
257 .state in set_disabled()
[all …]
/DragonOS-0.1.9/tools/debugging/logmonitor/src/
Dapp.rs173 pub state: ListState, field
180 state: ListState::default(), in with_items()
186 let i = match self.state.selected() { in next()
196 self.state.select(Some(i)); in next()
200 let i = match self.state.selected() { in previous()
210 self.state.select(Some(i)); in previous()
/DragonOS-0.1.9/kernel/src/libs/
Dwait_queue.rs187 pub fn wakeup(&self, state: Option<ProcessState>) -> bool { in wakeup()
194 if let Some(state) = state { in wakeup()
201 .state() in wakeup()
202 != state in wakeup()
216 pub fn wakeup_all(&self, state: Option<ProcessState>) { in wakeup_all()
227 if let Some(state) = state { in wakeup_all()
228 if to_wakeup.sched_info().inner_lock_read_irqsave().state() == state { in wakeup_all()
Donce.rs128 pub fn state(&self) -> OnceState { in state() method
/DragonOS-0.1.9/kernel/src/driver/base/
Dkobject.rs57 fn set_kobj_state(&self, state: KObjectState); in set_kobj_state()
65 let mut state = self.kobj_state_mut(); in update_kobj_state() localVariable
66 *state = (*state | insert) & !remove; in update_kobj_state()
98 pub fn new(state: Option<KObjectState>) -> LockedKObjectState { in new()
99 let state = state.unwrap_or(KObjectState::empty()); in new() localVariable
100 LockedKObjectState(RwLock::new(state)) in new()
Dkset.rs32 fn hash<H: core::hash::Hasher>(&self, state: &mut H) { in hash()
33 self.self_ref.as_ptr().hash(state); in hash()
34 self.inner.read().name.hash(state); in hash()
202 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
203 *self.kobj_state.write() = state; in set_kobj_state()
Dcpu.rs246 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
247 *self.kobj_state_mut() = state; in set_kobj_state()
/DragonOS-0.1.9/kernel/src/process/
Dexit.rs157 let state = pcb.sched_info().inner_lock_read_irqsave().state(); in do_wait() localVariable
158 if state.is_exited() { in do_wait()
159 kwo.ret_status = state.exit_code().unwrap() as i32; in do_wait()
183 let state = child_pcb.sched_info().inner_lock_read_irqsave().state(); in do_waitpid() localVariable
185 match state { in do_waitpid()
Dmod.rs205 let state = pcb.sched_info().inner_lock_read_irqsave().state(); in wakeup() localVariable
206 if state.is_blocked() { in wakeup()
208 let state = writer.state(); in wakeup() localVariable
209 if state.is_blocked() { in wakeup()
216 } else if state.is_exited() { in wakeup()
221 } else if state.is_exited() { in wakeup()
231 let state = pcb.sched_info().inner_lock_read_irqsave().state(); in wakeup_stop() localVariable
232 if let ProcessState::Stopped = state { in wakeup_stop()
234 let state = writer.state(); in wakeup_stop() localVariable
235 if let ProcessState::Stopped = state { in wakeup_stop()
[all …]
/DragonOS-0.1.9/kernel/src/ipc/
Dsignal.rs208 let state = pcb.sched_info().inner_lock_read_irqsave().state(); in wants_signal() localVariable
209 if state.is_blocked() && (state.is_blocked_interruptable() == false) { in wants_signal()
296 let state = pcb.sched_info().inner_lock_read_irqsave().state(); in signal_wake_up() localVariable
298 if state.is_blocked_interruptable() { in signal_wake_up()
308 } else if state.is_stopped() { in signal_wake_up()
/DragonOS-0.1.9/kernel/src/sched/
Dcore.rs118 let state = guard.state(); in do_sched() localVariable
119 if state.is_blocked() { in do_sched()
163 if pcb.sched_info().inner_lock_read_irqsave().state() != ProcessState::Runnable { in sched_enqueue()
Dcfs.rs228 let state = ProcessManager::current_pcb() in sched() localVariable
231 .state(); in sched()
232 if (state != ProcessState::Runnable) in sched()
238 if state == ProcessState::Runnable { in sched()
/DragonOS-0.1.9/kernel/src/driver/base/device/
Dmod.rs209 state: DeviceState, field
214 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new()
215 Self { id_table, state } in new()
222 pub fn state(&self) -> DeviceState { in state() method
223 self.state in state()
226 pub fn set_state(&mut self, state: DeviceState) { in set_state()
227 self.state = state; in set_state()
327 fn from(state: u32) -> Self { in from()
328 match state { in from()
338 fn from(state: DeviceState) -> Self { in from()
[all …]
Dbus.rs68 fn from(state: u32) -> Self { in from()
69 match state { in from()
79 fn from(state: DeviceState) -> Self { in from()
80 match state { in from()
90 fn from(state: BusState) -> Self { in from()
91 match state { in from()
/DragonOS-0.1.9/kernel/src/smp/cpu/
Dc_adapter.rs34 let can_boot = ap.state == acpi::platform::ProcessorState::WaitingForSipi; in rs_smp_get_cpus()
51 processor_info.boot_processor.state == acpi::platform::ProcessorState::WaitingForSipi, in rs_smp_get_cpus()
/DragonOS-0.1.9/kernel/src/driver/input/serio/i8042/
Di8042_device.rs161 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
162 *self.kobj_state.write() = state; in set_kobj_state()
Di8042_ports.rs159 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
160 *self.kobj_state.write() = state; in set_kobj_state()
Di8042_driver.rs187 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
188 *self.kobj_state.write() = state; in set_kobj_state()
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/
Dmod.rs308 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
309 *self.kobj_state.write() = state; in set_kobj_state()
521 fn set_kobj_state(&self, state: KObjectState) { in set_kobj_state()
522 *self.kobj_state.write() = state; in set_kobj_state()
/DragonOS-0.1.9/kernel/src/net/socket/
Dmod.rs809 let state = socket.state(); in tcp_poll() localVariable
810 if state != tcp::State::SynSent && state != tcp::State::SynReceived { in tcp_poll()
828 } else if state == tcp::State::SynSent { in tcp_poll()

12