Rename struct channel to struct lttng_kernel_ring_buffer_channel
[lttng-modules.git] / include / ringbuffer / frontend.h
index 1707d7133ca986a92aaa8b228a27b762ce522fac..7dc508ff576326256a267b51735fded88c86f50d 100644 (file)
@@ -52,7 +52,7 @@
  */
 
 extern
-struct channel *channel_create(const struct lib_ring_buffer_config *config,
+struct lttng_kernel_ring_buffer_channel *channel_create(const struct lib_ring_buffer_config *config,
                               const char *name, void *priv,
                               void *buf_addr,
                               size_t subbuf_size, size_t num_subbuf,
@@ -65,7 +65,7 @@ struct channel *channel_create(const struct lib_ring_buffer_config *config,
  * channel.
  */
 extern
-void *channel_destroy(struct channel *chan);
+void *channel_destroy(struct lttng_kernel_ring_buffer_channel *chan);
 
 
 /* Buffer read operations */
@@ -83,7 +83,7 @@ void *channel_destroy(struct channel *chan);
 
 extern struct lib_ring_buffer *channel_get_ring_buffer(
                                const struct lib_ring_buffer_config *config,
-                               struct channel *chan, int cpu);
+                               struct lttng_kernel_ring_buffer_channel *chan, int cpu);
 extern int lib_ring_buffer_open_read(struct lib_ring_buffer *buf);
 extern void lib_ring_buffer_release_read(struct lib_ring_buffer *buf);
 
@@ -104,8 +104,8 @@ extern int lib_ring_buffer_get_subbuf(struct lib_ring_buffer *buf,
                                      unsigned long consumed);
 extern void lib_ring_buffer_put_subbuf(struct lib_ring_buffer *buf);
 
-void lib_ring_buffer_set_quiescent_channel(struct channel *chan);
-void lib_ring_buffer_clear_quiescent_channel(struct channel *chan);
+void lib_ring_buffer_set_quiescent_channel(struct lttng_kernel_ring_buffer_channel *chan);
+void lib_ring_buffer_clear_quiescent_channel(struct lttng_kernel_ring_buffer_channel *chan);
 
 /*
  * lib_ring_buffer_get_next_subbuf/lib_ring_buffer_put_next_subbuf are helpers
@@ -130,7 +130,7 @@ static inline void lib_ring_buffer_put_next_subbuf(struct lib_ring_buffer *buf)
                                                    buf->backend.chan));
 }
 
-extern void channel_reset(struct channel *chan);
+extern void channel_reset(struct lttng_kernel_ring_buffer_channel *chan);
 extern void lib_ring_buffer_reset(struct lib_ring_buffer *buf);
 
 static inline
@@ -164,13 +164,13 @@ int lib_ring_buffer_is_finalized(const struct lib_ring_buffer_config *config,
 }
 
 static inline
-int lib_ring_buffer_channel_is_finalized(const struct channel *chan)
+int lib_ring_buffer_channel_is_finalized(const struct lttng_kernel_ring_buffer_channel *chan)
 {
        return chan->finalized;
 }
 
 static inline
-int lib_ring_buffer_channel_is_disabled(const struct channel *chan)
+int lib_ring_buffer_channel_is_disabled(const struct lttng_kernel_ring_buffer_channel *chan)
 {
        return atomic_read(&chan->record_disabled);
 }
This page took 0.023171 seconds and 4 git commands to generate.