.\" 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 "TTY_LDISC_REF_WAIT" "9" "09 October 2005" "" ""
.SH NAME
tty_ldisc_ref_wait \- wait for the tty ldisc
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct tty_ldisc * tty_ldisc_ref_wait (struct tty_struct * \fItty\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItty\fB\fR
tty device
.SH "DESCRIPTION"
.PP
Dereference the line discipline for the terminal and take a
reference to it. If the line discipline is in flux then
wait patiently until it changes.
.SH "NOTE"
.PP
Must not be called from an IRQ/timer context. The caller
must also be careful not to hold other locks that will deadlock
against a discipline change, such as an existing ldisc reference
(which we check for)