[Fwd: termios flow control]

WuHao derossi at mail.ustc.edu.cn
Tue May 29 07:54:24 UTC 2007


Two questions more:
In FUNC fillBufferQueue,suppose the RawInbuf reaches lowwater. A
judgement is then performed to see whether input is controlled with
XON/XOFF protocol ,whether XOFF is already sent and whether we should
send the XON now.(see the statement below)
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
==(FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP)))

1.I think FL_MDXON should be FL_MDXOFF;

2.When the ROB state is idle,we do need to send XON immediately since
the dequeue callback may never be called.But what about the case when
"tty->flow_ctrl & FL_OSTOP" is TRUE?



More information about the users mailing list