iio_buffer_ready
if (!iio_buffer_ready(indio_dev, rb, to_wait, n / datum_size)) {
if (iio_buffer_ready(indio_dev, rb, rb->watermark, 0))