.\" 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 "COPY_FROM_READ_BUF" "9" "09 October 2005" "" ""
.SH NAME
copy_from_read_buf \- copy read data directly
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int copy_from_read_buf (struct tty_struct * \fItty\fB, unsigned char __user ** \fIb\fB, size_t * \fInr\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItty\fB\fR
terminal device
.TP
\fB\fIb\fB\fR
user data
.TP
\fB\fInr\fB\fR
size of data
.SH "DESCRIPTION"
.PP
Helper function to speed up read_chan. It is only called when
ICANON is off; it copies characters straight from the tty queue to
user space directly. It can be profitably called twice; once to
drain the space from the tail pointer to the (physical) end of the
buffer, and once to drain the space from the (physical) beginning of
the buffer to head pointer.
.PP
Called under the tty->atomic_read sem and with TTY_DONT_FLIP set