On 12/02/2017 12:52 PM, Jonathan Cameron wrote: > On Fri, 1 Dec 2017 15:46:20 -0500 > mfornero@xxxxxxxxx wrote: > >> From: Matt Fornero <matt.fornero@xxxxxxxxxxxxx> >> >> Add a sysfs attribute that exposes the buffer data available to >> userspace. This attribute can be checked at runtime to determine the >> overall buffer fill level (across all allocated DMA buffers). >> >> Signed-off-by: Matt Fornero <matt.fornero@xxxxxxxxxxxxx> > > Seems sensible to me. > > Lars? I guess one question is whether this should be generic. iio_dma_buffer_data_available() is a generic function and not specific to the DMA buffers, so it would work just fine for FIFO based buffers as well. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html