MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tty_hiwat_in_block

Function tty_hiwat_in_block

freebsd/kern/tty.c:2019–2037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2017}
2018
2019void
2020tty_hiwat_in_block(struct tty *tp)
2021{
2022
2023 if ((tp->t_flags & TF_HIWAT_IN) == 0 &&
2024 tp->t_termios.c_iflag & IXOFF &&
2025 tp->t_termios.c_cc[VSTOP] != _POSIX_VDISABLE) {
2026 /*
2027 * Input flow control. Only enter the high watermark when we
2028 * can successfully store the VSTOP character.
2029 */
2030 if (ttyoutq_write_nofrag(&tp->t_outq,
2031 &tp->t_termios.c_cc[VSTOP], 1) == 0)
2032 tp->t_flags |= TF_HIWAT_IN;
2033 } else {
2034 /* No input flow control. */
2035 tp->t_flags |= TF_HIWAT_IN;
2036 }
2037}
2038
2039void
2040tty_hiwat_in_unblock(struct tty *tp)

Callers 2

ttydisc_rintFunction · 0.85
ttydisc_rint_bypassFunction · 0.85

Calls 1

ttyoutq_write_nofragFunction · 0.85

Tested by

no test coverage detected