]> Pileus Git - ~andy/linux/blob - drivers/staging/iio/kfifo_buf.h
Merge branch 'iommu-for-tony' of git://github.com/ohadbc/omap-iommu into devel-fixes
[~andy/linux] / drivers / staging / iio / kfifo_buf.h
1
2 #include <linux/kfifo.h>
3 #include "iio.h"
4 #include "ring_generic.h"
5
6 struct iio_kfifo {
7         struct iio_ring_buffer ring;
8         struct kfifo kf;
9         int use_count;
10         int update_needed;
11         struct mutex use_lock;
12 };
13
14 extern const struct iio_ring_access_funcs kfifo_access_funcs;
15
16 struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
17 void iio_kfifo_free(struct iio_ring_buffer *r);
18