Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs10 tty_core::{TtyCore, TtyCoreData, TtyFlag},
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 …]
H A Dntty.rs13 tty_core::{EchoOperation, TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
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: Weak<TtyCore>,
173 tty: Arc<TtyCore>, in receive_buf_common() argument
237 tty: Arc<TtyCore>, in receive_buf() argument
324 pub fn flush_echoes(&mut self, tty: Arc<TtyCore>) { in flush_echoes() argument
340 tty: Arc<TtyCore>, in receive_buf_standard() argument
403 pub fn receive_special_char(&mut self, mut c: u8, tty: Arc<TtyCore>, lookahead_done: bool) { in receive_special_char() argument
736 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/kernel/src/driver/tty/
H A Dtty_port.rs10 tty_core::TtyCore,
36 tty: Weak<TtyCore>,
38 internal_tty: Weak<TtyCore>,
60 pub fn internal_tty(&self) -> Option<Arc<TtyCore>> { in internal_tty() argument
64 pub fn tty(&self) -> Option<Arc<TtyCore>> { in tty() argument
89 fn setup_internal_tty(&self, tty: Weak<TtyCore>) { in setup_internal_tty() argument
H A Dtty_driver.rs32 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
[all …]
H A Dtty_core.rs38 pub struct TtyCore { struct
44 impl Drop for TtyCore { implementation
52 impl TtyCore { implementation
156 pub fn tty_mode_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in tty_mode_ioctl() argument
178 return TtyCore::core_set_termios( in tty_mode_ioctl()
185 return TtyCore::core_set_termios( in tty_mode_ioctl()
198 tty: Arc<TtyCore>, in core_set_termios() argument
230 TtyCore::set_termios_next(tty, tmp_termios)?; in core_set_termios()
234 pub fn set_termios_next(tty: Arc<TtyCore>, new_termios: Termios) -> Result<(), SystemError> { in set_termios_next() argument
311 link: RwLock<Weak<TtyCore>>,
[all …]
H A 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
H A Dtty_device.rs47 tty_core::{TtyCore, TtyFlag, TtyIoctlCmd},
581 pub tty: Arc<TtyCore>,
586 pub fn tty(&self) -> Arc<TtyCore> { in tty() argument
/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs7 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
38 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
76 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError> { in ioctl() argument
107 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios() argument
205 ) -> Result<Arc<TtyCore>, SystemError> { in lookup() argument
217 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in close()
232 tty: Arc<TtyCore>, in resize() argument
H A Dmod.rs24 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyPacketStatus},
97 tty: Arc<TtyCore>, in pty_common_install() argument
102 let other_tty = TtyCore::new(other_driver.clone(), core.index()); in pty_common_install()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs24 tty_core::{TtyCore, TtyCoreData},
170 fn install(&self, _driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
247 fn ioctl(&self, _tty: Arc<TtyCore>, _cmd: u32, _arg: usize) -> Result<(), SystemError> { in ioctl() argument
252 fn close(&self, _tty: Arc<TtyCore>) -> Result<(), SystemError> { in close()
258 _tty: Arc<TtyCore>, in resize() argument
/DragonOS/kernel/src/process/
H A Dmod.rs28 driver::tty::tty_core::TtyCore,
1487 tty: Option<Arc<TtyCore>>,
1515 pub fn tty(&self) -> Option<Arc<TtyCore>> { in tty() argument
1519 pub fn set_tty(&mut self, tty: Arc<TtyCore>) { in set_tty() argument