Go to the documentation of this file.
27 #ifndef _DVB_RINGBUFFER_H_
28 #define _DVB_RINGBUFFER_H_
31 #include <linux/wait.h>
44 #define DVB_RINGBUFFER_PKTHDRSIZE 3
105 #define DVB_RINGBUFFER_PEEK(rbuf,offs) \
106 (rbuf)->data[((rbuf)->pread+(offs))%(rbuf)->size]
109 #define DVB_RINGBUFFER_SKIP(rbuf,num) \
110 (rbuf)->pread=((rbuf)->pread+(num))%(rbuf)->size
118 u8 __user *
buf,
size_t len);
120 u8 *
buf,
size_t len);
126 #define DVB_RINGBUFFER_WRITE_BYTE(rbuf,byte) \
127 { (rbuf)->data[(rbuf)->pwrite]=(byte); \
128 (rbuf)->pwrite=((rbuf)->pwrite+1)%(rbuf)->size; }