---
name: "kfifo_out_peek"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/kfifo_out_peek"
---

# kfifo\_out\_peek(9)

gets some data from the fifo

## NAME

kfifo\_out\_peek - gets some data from the fifo

## SYNOPSIS

**kfifo\_out\_peek(***fifo***,** *buf***,** *n***);**

## ARGUMENTS

*fifo*

address of the fifo to be used

*buf*

pointer to the storage buffer

*n*

max. number of elements to get

## DESCRIPTION

This macro get the data from the fifo and return the numbers of elements copied. The data is not removed from the fifo.

Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.

## COPYRIGHT
