kfifo: add kfifo_skip, kfifo_from_user and kfifo_to_user
authorStefani Seibold <stefani@seibold.net>
Mon, 21 Dec 2009 22:37:31 +0000 (14:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Dec 2009 22:17:56 +0000 (14:17 -0800)
commita121f24accac1600bf5b6fb1e12eeabdfed7cb1a
tree24a3bb527e50304677785dbb390dd5ff838c94e8
parent37bdfbbfaab47811fcec84dff23c4e8da1a09f9e
kfifo: add kfifo_skip, kfifo_from_user and kfifo_to_user

Add kfifo_reset_out() for save lockless discard the fifo output
 Add kfifo_skip() to skip a number of output bytes
 Add kfifo_from_user() to copy user space data into the fifo
 Add kfifo_to_user() to copy fifo data to user space

Signed-off-by: Stefani Seibold <stefani@seibold.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
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