1 #ifndef HAVE_RING_BUFFER__
2 #define HAVE_RING_BUFFER__
18 #define report_exceptional_condition() abort ()
24 unsigned long count_bytes;
25 unsigned long write_offset_bytes;
26 unsigned long read_offset_bytes;
29 void ring_buffer_create (
struct ring_buffer *buffer,
unsigned long order);
33 void *ring_buffer_write_address (
struct ring_buffer *buffer);
35 void ring_buffer_write_advance (
struct ring_buffer *buffer,
unsigned long count_bytes);
37 void *ring_buffer_read_address (
struct ring_buffer *buffer);
39 void ring_buffer_read_advance (
struct ring_buffer *buffer,
unsigned long count_bytes);
41 unsigned long ring_buffer_count_bytes (
struct ring_buffer *buffer);
43 unsigned long ring_buffer_count_free_bytes (
struct ring_buffer *buffer);
45 void ring_buffer_clear (
struct ring_buffer *buffer);
Definition: RingBuffer.h:20