.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "N_TTY_FLUSH_BUFFER" "9" "09 October 2005" "" ""
.SH NAME
n_tty_flush_buffer \- clean input queue
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void n_tty_flush_buffer (struct tty_struct * \fItty\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItty\fB\fR
terminal device
.SH "DESCRIPTION"
.PP
Flush the input buffer. Called when the line discipline is
being closed, when the tty layer wants the buffer flushed (eg
at hangup) or when the N_TTY line discipline internally has to
clean the pending queue (for example some signals).
.SH "FIXME"
.PP
tty->ctrl_status is not spinlocked and relies on
\fBlock_kernel\fR still.