diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2015-06-05 15:56:47 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-06-21 14:51:13 +0100 |
commit | c6f67a1f55a7f8a8373068ca07553bd2b2731949 (patch) | |
tree | 936323b1e9e9d2ef184f35fc32f5abd459b0572e /include/net/lapb.h | |
parent | e20008ed931b9bdd90d1a3fd8c9ef9307547f4ed (diff) | |
download | lwn-c6f67a1f55a7f8a8373068ca07553bd2b2731949.tar.gz lwn-c6f67a1f55a7f8a8373068ca07553bd2b2731949.zip |
iio: allow userspace to flush the hwfifo with non-blocking reads
This patch changes the semantics of non-blocking reads so that a
hardware fifo flush is triggered if the available data in the device
buffer is less then the requested size.
This allows userspace to accurately generate hardware fifo flushes, by
doing a non-blocking read with a size greater then the sum of the
device buffer and hardware fifo size.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/net/lapb.h')
0 files changed, 0 insertions, 0 deletions