Lines Matching refs:TtyCore
32 tty_core::{TtyCore, TtyCoreData},
121 ttys: SpinLock<HashMap<usize, Arc<TtyCore>>>,
173 pub fn add_tty(&self, tty_core: Arc<TtyCore>) { in add_tty() argument
207 pub fn ttys(&self) -> SpinLockGuard<HashMap<usize, Arc<TtyCore>>> { in ttys() argument
222 fn lookup_tty(&self, index: usize) -> Option<Arc<TtyCore>> { in lookup_tty() argument
233 fn standard_install(&self, tty_core: Arc<TtyCore>) -> Result<(), SystemError> { in standard_install()
245 fn driver_install_tty(driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in driver_install_tty()
264 ) -> Result<Arc<TtyCore>, SystemError> { in init_tty_device() argument
265 let tty = TtyCore::new(driver.clone(), index); in init_tty_device()
283 pub fn open_tty(index: usize, driver: Arc<TtyDriver>) -> Result<Arc<TtyCore>, SystemError> { in open_tty() argument
398 fn install(&self, _driver: Arc<TtyDriver>, _tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
430 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError>; in ioctl() argument
436 fn set_termios(&self, _tty: Arc<TtyCore>, _old_termios: Termios) -> Result<(), SystemError> { in set_termios() argument
444 ) -> Result<Arc<TtyCore>, SystemError> { in lookup() argument
448 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close()
450 fn resize(&self, _tty: Arc<TtyCore>, _winsize: WindowSize) -> Result<(), SystemError>; in resize() argument