Go to the documentation of this file. 1 #ifndef _LINUX_RING_BUFFER_H
2 #define _LINUX_RING_BUFFER_H
93 #define ring_buffer_alloc(size, flags) \
95 static struct lock_class_key __key; \
96 __ring_buffer_alloc((size), (flags), &__key); \
99 #define RING_BUFFER_ALL_CPUS -1
116 unsigned long *lost_events);
119 unsigned long *lost_events);
139 #ifdef CONFIG_RING_BUFFER_ALLOW_SWAP
140 int ring_buffer_swap_cpu(
struct ring_buffer *buffer_a,
182 size_t len,
int cpu,
int full);