lkml.org 
[lkml]   [2011]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2011-11-14 18:51    [W:0.030 / U:36.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site