kfifo: add example files to the kernel sample directory
authorStefani Seibold <stefani@seibold.net>
Wed, 11 Aug 2010 01:03:39 +0000 (18:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:23 +0000 (08:59 -0700)
commit5bf2b19320ec31d094d7370fdf536f7fd91fd799
tree47052fd9bdb0969d4a4a7d430695388094409964
parent2e956fb320568cc70861761483e2f0e2db75fd66
kfifo: add example files to the kernel sample directory

Add four examples to the kernel sample directory.

It shows how to handle:
- a byte stream fifo
- a integer type fifo
- a dynamic record sized fifo
- the fifo DMA functions

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Stefani Seibold <stefani@seibold.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/Kconfig
samples/Makefile
samples/kfifo/Makefile [new file with mode: 0644]
samples/kfifo/bytestream-example.c [new file with mode: 0644]
samples/kfifo/dma-example.c [new file with mode: 0644]
samples/kfifo/inttype-example.c [new file with mode: 0644]
samples/kfifo/record-example.c [new file with mode: 0644]