X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lib%2Fringbuffer%2Ffrontend_types.h;h=e8c4c5ce8a4f5dd89da66cce76d5c8af7e66e356;hb=9115fbdc0d5b0d69b32d3d4d924624fbbe22638e;hp=0fa2dddfce5efb9339fac01fe77a869786d303f9;hpb=f40270adf3e31289ac13a482e830b4a19d8df3bf;p=lttng-modules.git diff --git a/lib/ringbuffer/frontend_types.h b/lib/ringbuffer/frontend_types.h index 0fa2dddf..e8c4c5ce 100644 --- a/lib/ringbuffer/frontend_types.h +++ b/lib/ringbuffer/frontend_types.h @@ -139,6 +139,12 @@ struct lib_ring_buffer { int read_timer_enabled:1; /* Protected by ring_buffer_nohz_lock */ }; +static inline +void *channel_get_private(struct channel *chan) +{ + return chan->backend.priv; +} + /* * Issue warnings and disable channels upon internal error. * Can receive struct lib_ring_buffer or struct lib_ring_buffer_backend