kfifo_peek (9) - Linux Man Pages
kfifo_peek: get data from the fifo without removing
kfifo_peek - get data from the fifo without removing
- kfifo_peek(fifo, val);
- address of the fifo to be used
- address where to store the data
This reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.