kfifo: add kfifo_out_peek
authorAndi Kleen <andi@firstfloor.org>
Sat, 16 Jan 2010 01:01:16 +0000 (17:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2010 20:15:38 +0000 (12:15 -0800)
commita5b9e2c1063046421ce01dcf5ddd7ec12567f3e1
tree09cef2a043af96491497db380abe89af2aee5176
parent64ce1037c5434b1d036cd99ecaee6e00496bc2e9
kfifo: add kfifo_out_peek

In some upcoming code it's useful to peek into a FIFO without permanentely
removing data.  This patch implements a new kfifo_out_peek() to do this.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Stefani Seibold <stefani@seibold.net>
Cc: Roland Dreier <rdreier@cisco.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Andy Walls <awalls@radix.net>
Cc: Vikram Dhillon <dhillonv10@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kfifo.h
kernel/kfifo.c