.\" 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 "NORMAL_POLL" "9" "09 October 2005" "" ""
.SH NAME
normal_poll \- poll method for N_TTY
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
unsigned int normal_poll (struct tty_struct * \fItty\fB, struct file * \fIfile\fB, poll_table * \fIwait\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItty\fB\fR
terminal device
.TP
\fB\fIfile\fB\fR
file accessing it
.TP
\fB\fIwait\fB\fR
poll table
.SH "DESCRIPTION"
.PP
Called when the line discipline is asked to \fBpoll\fR for data or
for special events. This code is not serialized with respect to
other events save open/close.
.PP
This code must be sure never to sleep through a hangup.
Called without the kernel lock held - fine
.SH "FIXME"
.PP
if someone changes the VMIN or discipline settings for the
terminal while another process is in \fBpoll\fR the poll does not
recompute the new limits. Possibly set_termios should issue
a read wakeup to fix this bug.