I've been looking at serial driver code (2.4.18), and low level
drivers provide a way to flush the tx buffer by calling
tty->driver.flush_buffer(tty); // from tty_ioctl.c
but there does not seem to be a corresponding call to flush the
rx buffer. Why not?
TCOFLUSH flushes both line-discipline and low-level driver
buffers, but TCIFLUSH only flushes line-discipline buffers.
This seems wrong...
--
Grant Edwards grante Yow! Wait... is this a FUN
at THING or the END of LIFE in
visi.com Petticoat Junction??