dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/staging/iio/kfifo_buf.h

19 lines
384 B
C

#include <linux/kfifo.h>
#include "iio.h"
#include "ring_generic.h"
struct iio_kfifo {
struct iio_ring_buffer ring;
struct kfifo kf;
int use_count;
int update_needed;
struct mutex use_lock;
};
extern const struct iio_ring_access_funcs kfifo_access_funcs;
struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
void iio_kfifo_free(struct iio_ring_buffer *r);