.TH ttwrite() "" "" "Internal Kernel Routine"
.PC "Write to tty"
.B "#include <sys/io.h>"
.B "#include <sys/tty.h>"
\fBvoid ttwrite(\fItp\^\fB, \fIiop\^\fB)\fR
\fBTTY *\fItp\^\fB; IO *\fIiop\^\fB;\fR
.PP
.B ttwrite()
moves data to an output queue associated with
.IR tp ,
from the I/O segment referenced by \fIiop\fR.
If an error occurs, it calls
.B set_user_error()
with an appropriate value.
.PP
.B ttwrite()
blocks either if the queue is full and
.B IONDLY
is clear for the transfer, or if the line discipline has run out of
.BR clist s.
.SH "See Also"
.B
internal kernel routines
.R
