Staging: IIO: Ring buffer: Initial pass at rarely locked ring buffer
commit2235acb21890cdd3bc189720b4e98fc1b5c3b268
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 18 Aug 2009 17:06:27 +0000 (18 18:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:25 +0000 (15 12:02 -0700)
tree8f8ad318ed94b81b789e2d09c85e2f2ef7153ff7
parent1637db44413e32a0f100dd4bd164644e641842f7
Staging: IIO: Ring buffer: Initial pass at rarely locked ring buffer

Please note this ring buffer implementation is very much a
work in progress (and hence RFC).  In it's current form
it is stable and reasonably efficient.  There are a couple
of unlikely cases that will lead to more data being lost
that is strictly necessary. The target was for the case
of requiring regular sampling even during user space reads.

All comments welcome.

The intention is to make this only one of several
implementations with run time selection.  For now there
is only one, so it is hard coded into the drivers using it.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Kconfig
drivers/staging/iio/Makefile
drivers/staging/iio/ring_sw.c [new file with mode: 0644]
drivers/staging/iio/ring_sw.h [new file with mode: 0644]