Home
last modified time | relevance | path

Searched refs:old_termios (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs107 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios()
118 let extproc = old_termios.local_mode.contains(LocalMode::EXTPROC) in set_termios()
121 let old_flow = old_termios.input_mode.contains(InputMode::IXON) in set_termios()
122 && old_termios.control_characters[ControlCharIndex::VSTOP] == 0o023 in set_termios()
123 && old_termios.control_characters[ControlCharIndex::VSTART] == 0o021; in set_termios()
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs251 let old_termios = *termios; in set_termios_next() localVariable
254 termios.control_mode ^= (tmp ^ old_termios.control_mode) & ControlMode::ADDRB; in set_termios_next()
257 let ret = tty.set_termios(tty.clone(), old_termios); in set_termios_next()
261 termios.control_mode |= old_termios.control_mode in set_termios_next()
263 termios.input_speed = old_termios.input_speed; in set_termios_next()
264 termios.output_speed = old_termios.output_speed; in set_termios_next()
269 ld.set_termios(tty, Some(old_termios)).ok(); in set_termios_next()
601 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios()
606 .set_termios(tty, old_termios); in set_termios()