Searched refs:vc (Results 1 – 5 of 5) sorted by relevance
165 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 …]
351 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() localVariable413 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()
57 vc: &Arc<VirtConsole>, in con_init()67 let tty = vc.port().port_data().tty().unwrap(); in con_init()
14 vc: &Arc<VirtConsole>, in con_init()
352 * 修改一处因为vc的pos和x计算错误导致的溢出