Home
last modified time | relevance | path

Searched refs:TtyCore (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/
Dmod.rs10 tty_core::{TtyCore, TtyCoreData},
16 fn open(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in open()
17 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close()
18 fn flush_buffer(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in flush_buffer()
30 tty: Arc<TtyCore>, in read() argument
39 tty: Arc<TtyCore>, in write() argument
44 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError>; in ioctl() argument
49 fn set_termios(&self, tty: Arc<TtyCore>, old: Option<Termios>) -> Result<(), SystemError>; in set_termios() argument
51 fn poll(&self, tty: Arc<TtyCore>) -> Result<usize, SystemError>; in poll()
52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup()
[all …]
Dntty.rs13 tty_core::{EchoOperation, TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd},
54 fn ioctl_helper(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in ioctl_helper() argument
63 return TtyCore::tty_mode_ioctl(tty.clone(), cmd, arg); in ioctl_helper()
125 tty: Option<Weak<TtyCore>>,
173 tty: Arc<TtyCore>, in receive_buf_common() argument
242 tty: Arc<TtyCore>, in receive_buf() argument
329 pub fn flush_echoes(&mut self, tty: Arc<TtyCore>) { in flush_echoes() argument
345 tty: Arc<TtyCore>, in receive_buf_standard() argument
408 pub fn receive_special_char(&mut self, mut c: u8, tty: Arc<TtyCore>, lookahead_done: bool) { in receive_special_char() argument
741 pub fn is_flow_ctrl_char(&mut self, tty: Arc<TtyCore>, c: u8, lookahead_done: bool) -> bool { in is_flow_ctrl_char() argument
[all …]
/DragonOS-0.1.9/kernel/src/driver/tty/
Dtty_port.rs15 use super::{tty_core::TtyCore, virtual_terminal::virtual_console::CURRENT_VCNUM};
43 tty: Weak<TtyCore>,
58 pub fn tty(&self) -> Option<Arc<TtyCore>> { in tty() argument
83 fn setup_tty(&self, tty: Weak<TtyCore>) { in setup_tty() argument
Dtty_core.rs34 pub struct TtyCore { struct
40 impl TtyCore { impl
144 pub fn tty_mode_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in tty_mode_ioctl() argument
167 return TtyCore::core_set_termios( in tty_mode_ioctl()
174 return TtyCore::core_set_termios( in tty_mode_ioctl()
187 tty: Arc<TtyCore>, in core_set_termios() argument
219 TtyCore::set_termios_next(tty, tmp_termios)?; in core_set_termios()
223 pub fn set_termios_next(tty: Arc<TtyCore>, new_termios: Termios) -> Result<(), SystemError> { in set_termios_next() argument
311 link: Option<Arc<TtyCore>>,
405 pub fn link(&self) -> Option<Arc<TtyCore>> { in link() argument
[all …]
Dtty_driver.rs24 tty_core::{TtyCore, TtyCoreData},
107 ttys: SpinLock<HashMap<usize, Arc<TtyCore>>>,
151 pub fn add_tty(&self, tty_core: Arc<TtyCore>) { in add_tty() argument
166 fn lockup_tty(&self, index: usize) -> Option<Arc<TtyCore>> { in lockup_tty() argument
174 fn standard_install(&self, tty_core: Arc<TtyCore>) -> Result<(), SystemError> { in standard_install()
195 fn driver_install_tty(driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in driver_install_tty()
212 fn init_tty_device(driver: Arc<TtyDriver>, index: usize) -> Result<Arc<TtyCore>, SystemError> { in init_tty_device() argument
213 let tty = TtyCore::new(driver.clone(), index); in init_tty_device()
230 pub fn open_tty(dev_num: DeviceNumber) -> Result<Arc<TtyCore>, SystemError> { in open_tty() argument
356 fn install(&self, _driver: Arc<TtyDriver>, _tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
[all …]
Dtty_job_control.rs11 use super::tty_core::{TtyCore, TtyIoctlCmd};
17 pub fn proc_set_tty(tty: Arc<TtyCore>) { in proc_set_tty() argument
34 pub fn tty_check_change(tty: Arc<TtyCore>, sig: Signal) -> Result<(), SystemError> { in tty_check_change() argument
71 pub fn job_ctrl_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in job_ctrl_ioctl() argument
Dtty_device.rs41 tty_core::{TtyCore, TtyFlag, TtyIoctlCmd},
477 tty: Arc<TtyCore>,
/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/
Dmod.rs23 tty_core::{TtyCore, TtyCoreData},
156 fn install(&self, _driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
227 fn ioctl(&self, _tty: Arc<TtyCore>, _cmd: u32, _arg: usize) -> Result<(), SystemError> { in ioctl() argument
/DragonOS-0.1.9/kernel/src/process/
Dmod.rs24 driver::tty::tty_core::TtyCore,
1304 tty: Option<Arc<TtyCore>>,
1332 pub fn tty(&self) -> Option<Arc<TtyCore>> { in tty() argument
1336 pub fn set_tty(&mut self, tty: Arc<TtyCore>) { in set_tty() argument