'\" t .\" Title: kfifo_get .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: FIFO Buffer .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "KFIFO_GET" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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_get \- get data from the fifo .SH "SYNOPSIS" .HP \w'kfifo_get('u .BI "kfifo_get(" "fifo" ", " "val" ");" .SH "ARGUMENTS" .PP \fIfifo\fR .RS 4 address of the fifo to be used .RE .PP \fIval\fR .RS 4 address where to store the data .RE .SH "DESCRIPTION" .PP This macro reads the data from the fifo\&. It returns 0 if the fifo was empty\&. Otherwise it returns the number processed elements\&. .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