'\" t .\" Title: kfifo_out_peek .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: FIFO Buffer .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "KFIFO_OUT_PEEK" "9" "June 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_out_peek \- gets some data from the fifo .SH "SYNOPSIS" .HP \w'kfifo_out_peek('u .BI "kfifo_out_peek(" "fifo" ", " "buf" ", " "n" ");" .SH "ARGUMENTS" .PP \fI fifo\fR .RS 4 address of the fifo to be used .RE .PP \fI buf\fR .RS 4 pointer to the storage buffer .RE .PP \fI n\fR .RS 4 max\&. number of elements to get .RE .SH "DESCRIPTION" .PP This macro get the data from the fifo and return the numbers of elements copied\&. The data is not removed from the fifo\&. .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