.\" 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 "WRITE_CHAN" "9" "09 October 2005" "" ""
.SH NAME
write_chan \- write function for tty
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
ssize_t write_chan (struct tty_struct * \fItty\fB, struct file * \fIfile\fB, const unsigned char * \fIbuf\fB, size_t \fInr\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItty\fB\fR
tty device
.TP
\fB\fIfile\fB\fR
file object
.TP
\fB\fIbuf\fB\fR
userspace buffer pointer
.TP
\fB\fInr\fB\fR
size of I/O
.SH "DESCRIPTION"
.PP
Write function of the terminal device. This is serialized with
respect to other write callers but not to termios changes, reads
and other such events. We must be careful with N_TTY as the receive
code will echo characters, thus calling driver write methods.
.PP
This code must be sure never to sleep through a hangup.