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>
Showing
- samples/Kconfig 10 additions, 0 deletionssamples/Kconfig
- samples/Makefile 1 addition, 1 deletionsamples/Makefile
- samples/kfifo/Makefile 1 addition, 0 deletionssamples/kfifo/Makefile
- samples/kfifo/bytestream-example.c 163 additions, 0 deletionssamples/kfifo/bytestream-example.c
- samples/kfifo/dma-example.c 115 additions, 0 deletionssamples/kfifo/dma-example.c
- samples/kfifo/inttype-example.c 157 additions, 0 deletionssamples/kfifo/inttype-example.c
- samples/kfifo/record-example.c 167 additions, 0 deletionssamples/kfifo/record-example.c
samples/kfifo/Makefile
0 → 100644
samples/kfifo/bytestream-example.c
0 → 100644
samples/kfifo/dma-example.c
0 → 100644
samples/kfifo/inttype-example.c
0 → 100644
samples/kfifo/record-example.c
0 → 100644
Please register or sign in to comment