> > > + if (test_bit(IIO_BUSY_BIT_POS, &rb->flags)) > > > + return -EBUSY; > > > + > > > + return iio_buffer_write(filp, buf, n, f_ps); > > > +} > > > + > > > __poll_t iio_buffer_poll_wrapper(struct file *filp, > > > struct poll_table_struct *wait) > > > { > > > @@ -231,6 +317,15 @@ void iio_buffer_wakeup_poll(struct iio_dev > > *indio_dev) > > > } > > > } > > > > > > +int iio_buffer_remove_sample(struct iio_buffer *buffer, u8 *data) > > > > sample or scan? Sample would be a single value for a single channel, > > scan would be updates for all channels that are enabled. > > Maybe iio_pop_from_buffer()? To be consistent with iio_push_to_buffer().. Works for me. J > > - Nuno Sá