summaryrefslogtreecommitdiff
path: root/include/linux/mv643xx.h
diff options
context:
space:
mode:
authorStefani Seibold <stefani@seibold.net>2009-12-21 22:37:30 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-22 22:17:56 (GMT)
commit37bdfbbfaab47811fcec84dff23c4e8da1a09f9e (patch)
tree89e88b5859674b9d9255fa1a87aaf34090da574d /include/linux/mv643xx.h
parent9842c38e917636fa7dc6b88aff17a8f1fd7f0cc0 (diff)
downloadlinux-fsl-qoriq-37bdfbbfaab47811fcec84dff23c4e8da1a09f9e.tar.xz
kfifo: add DEFINE_KFIFO and friends, add very tiny functions
Add DECLARE_KFIFO - macro to declare a kfifo and the associated buffer inside a struct Add INIT_KFIFO - Initialize a kfifo declared by DECLARED_KFIFO Add DEFINE_KFIFO - macro to define and initialize a kfifo as a global or local object Add kfifo_size() - returns the size of the fifo in bytes Add kfifo_is_empty() - returns true if the fifo is empty Add kfifo_is_full() - returns true if the fifo is full Add kfifo_avail() - returns the number of bytes available in the FIFO Do some code cleanup 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>
Diffstat (limited to 'include/linux/mv643xx.h')
0 files changed, 0 insertions, 0 deletions