Home
last modified time | relevance | path

Searched refs:vc (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs165 pub fn alloc(&self, vc: Arc<VirtConsole>) -> Option<usize> { in alloc()
168 vc.index.init(index); in alloc()
169 if let Some(vc_data) = vc.vc_data.as_ref() { in alloc()
173 inner.consoles.insert(index, vc); in alloc()
180 if let Some(vc) = inner.consoles.remove(&index) { in free()
181 vc.devfs_remove(); in free()
188 self.current_vc.read().as_ref().map(|(vc, _)| vc.clone()) in current_vc()
197 .and_then(|vc| vc.port().port_data().internal_tty()) in current_vc_tty_name()
202 pub fn set_current_vc(&self, vc: Arc<VirtConsole>) { in set_current_vc()
203 let index = *vc.index.get(); in set_current_vc()
[all …]
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs351 vc: Arc<VirtConsole>, in do_install()
354 vc.port().setup_internal_tty(Arc::downgrade(&tty)); in do_install()
355 tty.set_port(vc.port()); in do_install()
356 vc.devfs_setup()?; in do_install()
412 let vc = VirtConsole::new(Some(vc_data)); in install() localVariable
413 let vc_index = vc_manager().alloc(vc.clone()).ok_or(SystemError::EBUSY)?; in install()
414 self.do_install(driver, tty, vc.clone()).inspect_err(|_| { in install()
/DragonOS/kernel/src/driver/video/console/
H A Ddummycon.rs57 vc: &Arc<VirtConsole>, in con_init()
67 let tty = vc.port().port_data().tty().unwrap(); in con_init()
/DragonOS/kernel/src/driver/tty/
H A Dconsole.rs14 vc: &Arc<VirtConsole>, in con_init()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md352 * 修改一处因为vc的pos和x计算错误导致的溢出