lkml.org 
[lkml]   [2008]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about TTY_DO_WRITE_WAKEUP
> Is the TTY_DO_WRITE_WAKEUP bit some kind of cruft that can be removed entirely 
> or should i generate a patch for serial devices only ?

It shouldn't happen at the serial level. The line discipline sets the
flag as and when it has data for the process above.

The expected flow in normal use is

app writes to tty
data goes to n_tty ldisc
goes to tty
n_tty ldisc seems tty blocked
n_tty ldisc sets DO_WRITE_WAKEUP

tty gets ucongested
calls n_tty write_wakeup
SIGIO sent
Flag set again

The important part of the logic is in n_tty.c and tty_io.c

Alan


\
 
 \ /
  Last update: 2008-11-20 15:35    [W:0.097 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site