iio: Add support for blocking IO on buffers
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 25 Nov 2013 14:56:00 +0000 (14:56 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 3 Dec 2013 20:22:29 +0000 (20:22 +0000)
commitee551a10006f3728c231bbe9c30635ff53250dbc
tree987679d5c4abbb9bc6cd67d6507145d6ee047ef9
parent355c1a14d4009a43e4d1f9cb42a382f0a94d01c4
iio: Add support for blocking IO on buffers

Currently the IIO buffer interface only allows non-blocking reads. This patch
adds support for blocking IO. In blocking mode the thread will go to sleep if no
data is available and will wait for the buffer implementation to signal that new
data is available by waking up the buffers waitqueue.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c