Lars-Peter Clausen bb01443e2c staging:iio: Make sure a device is only opened once at a time
Our buffer implementation does not support multiple concurrent readers. So we
have to ensure that a device is only opened once at a time. So do the same thing
we do for the event fd and introduce a per device busy flag. The flag gets set
when opening the device and gets cleared when closing the device. If a open is
attempted while the busy flag is set we return -EBUSY.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-12-22 13:38:08 -08:00
..
2011-11-26 16:35:04 -08:00
2011-11-26 16:35:04 -08:00
2011-11-26 16:35:04 -08:00
2010-11-09 15:46:32 -08:00
2011-12-08 12:15:44 -08:00