Messages in this thread | | | Date | Mon, 14 Nov 2011 17:49:16 +0000 | From | Alan Cox <> | Subject | Re: [PATCH] TTY: tty flip buffer with synchronous line disciplines. |
| |
On Mon, 14 Nov 2011 21:41:36 +0400 Ilya Zykov <ilya@ilyx.ru> wrote:
> For use flip buffer with synchronous line disciplines(n_hdlc, ppp_synctty).
If you are doing synchronous protocols then they shouldn't be going via the tty loopback in the first place. Why can't you use tuntap and the like for synchronous protocols ? Stuffing them through the tty layer is a bad hack anyway and not one we should encourage further.
> + if ((b = tty->buf.tail) != NULL && !tty->pty_sync) > left = b->size - b->used;
What stops tty->pty_sync changing under the line discipline btw ?
Alan
| |