X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Ffrontend.h;fp=lib%2Fringbuffer%2Ffrontend.h;h=85858d936ca0c3f43ad1c8b84f5f569b1e5e2e54;hb=24cedcfefbfe781af5430e07a327030cc7caddfc;hp=003c2e1915f70cb7e53601efe9e8de0fb0d9b0e1;hpb=f91fd73b8982db34560bf3fe6da9fdf9a42901a9;p=lttng-modules.git diff --git a/lib/ringbuffer/frontend.h b/lib/ringbuffer/frontend.h index 003c2e19..85858d93 100644 --- a/lib/ringbuffer/frontend.h +++ b/lib/ringbuffer/frontend.h @@ -157,6 +157,12 @@ int lib_ring_buffer_is_finalized(const struct lib_ring_buffer_config *config, return finalized; } +static inline +int lib_ring_buffer_channel_is_finalized(const struct channel *chan) +{ + return chan->finalized; +} + static inline unsigned long lib_ring_buffer_get_read_data_size( const struct lib_ring_buffer_config *config,