Home
last modified time | relevance | path

Searched refs:TtyFlag (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/driver/tty/pty/
H A Dmod.rs24 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyPacketStatus},
146 if core.flags().contains(TtyFlag::OTHER_CLOSED) { in pty_common_open()
147 core.flags_write().insert(TtyFlag::IO_ERROR); in pty_common_open()
151 if link_core.flags().contains(TtyFlag::PTY_LOCK) { in pty_common_open()
152 core.flags_write().insert(TtyFlag::IO_ERROR); in pty_common_open()
160 core.flags_write().insert(TtyFlag::IO_ERROR); in pty_common_open()
164 core.flags_write().remove(TtyFlag::IO_ERROR); in pty_common_open()
165 link_core.flags_write().remove(TtyFlag::OTHER_CLOSED); in pty_common_open()
166 core.flags_write().insert(TtyFlag::THROTTLED); in pty_common_open()
178 tty.flags_write().insert(TtyFlag::PTY_LOCK); in pty_set_lock()
[all …]
H A Dunix98pty.rs7 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
275 core.flags_write().insert(TtyFlag::PTY_LOCK); in ptmx_open()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs10 tty_core::{TtyCore, TtyCoreData, TtyFlag},
118 o_tty.core().flags_write().remove(TtyFlag::LDISC_OPEN); in ldisc_setup()
H A Dntty.rs13 tty_core::{EchoOperation, TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
225 if tty.core().flags().contains(TtyFlag::LDISC_CHANGING) { in receive_buf_common()
1666 if core.flags().contains(TtyFlag::OTHER_CLOSED) { in read()
1671 if core.flags().contains(TtyFlag::HUPPED) || core.flags().contains(TtyFlag::HUPPING) in read()
1677 || core.flags().contains(TtyFlag::LDISC_CHANGING) in read()
1769 if core.flags().contains(TtyFlag::HUPPED) { in write()
1819 if mode.contains(FileMode::O_NONBLOCK) || core.flags().contains(TtyFlag::LDISC_CHANGING) in write()
2083 if core.flags().contains(TtyFlag::OTHER_CLOSED) { in poll()
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs63 flags: RwLock::new(TtyFlag::empty()), in new()
161 if self.core.flags().contains(TtyFlag::DO_WRITE_WAKEUP) { in tty_wakeup()
306 flags: RwLock<TtyFlag>,
366 pub fn flags(&self) -> TtyFlag { in flags() argument
371 pub fn flags_write(&self) -> RwLockWriteGuard<'_, TtyFlag> { in flags_write() argument
619 pub struct TtyFlag: u32 {
H A Dtty_device.rs47 tty_core::{TtyCore, TtyFlag, TtyIoctlCmd},
244 if core.flags().contains(TtyFlag::NO_WRITE_SPLIT) { in write_at()