'\" t .\" Title: kfifo_to_user .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: FIFO Buffer .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "KFIFO_TO_USER" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "FIFO Buffer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kfifo_to_user \- copies data from the fifo into user space .SH "SYNOPSIS" .HP \w'kfifo_to_user('u .BI "kfifo_to_user(" "fifo" ", " "to" ", " "len" ", " "copied" ");" .SH "ARGUMENTS" .PP \fI fifo\fR .RS 4 address of the fifo to be used .RE .PP \fI to\fR .RS 4 where the data must be copied .RE .PP \fI len\fR .RS 4 the size of the destination buffer .RE .PP \fI copied\fR .RS 4 pointer to output variable to store the number of copied bytes .RE .SH "DESCRIPTION" .PP This macro copies at most \fIlen\fR bytes from the fifo into the \fIto\fR buffer and returns \-EFAULT/0\&. .PP Note that with only one concurrent reader and one concurrent writer, you don\*(Aqt need extra locking to use these macro\&. .SH "COPYRIGHT" .br