commit | ee551a10006f3728c231bbe9c30635ff53250dbc | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Mon Nov 25 14:56:00 2013 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Tue Dec 03 20:22:29 2013 +0000 |
tree | 987679d5c4abbb9bc6cd67d6507145d6ee047ef9 | |
parent | 355c1a14d4009a43e4d1f9cb42a382f0a94d01c4 [diff] |
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>