Skip to content
  • Peter Hurley's avatar
    n_tty: Encapsulate minimum_to_wake within N_TTY · f6c8dbe6
    Peter Hurley authored
    
    
    minimum_to_wake is unique to N_TTY processing, and belongs in
    per-ldisc data.
    
    Add the ldisc method, ldisc_ops::fasync(), to notify line disciplines
    when signal-driven I/O is enabled or disabled. When enabled for N_TTY
    (by fcntl(F_SETFL, O_ASYNC)), blocking reader/polls will be woken
    for any readable input. When disabled, blocking reader/polls are not
    woken until the read buffer is full.
    
    Canonical mode (L_ICANON(tty), n_tty_data::icanon) is not affected by
    the minimum_to_wake setting.
    
    Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    f6c8dbe6