Return POLLERR if channel is disabled (error state)
[lttng-modules.git] / lib / ringbuffer / frontend.h
index 85858d936ca0c3f43ad1c8b84f5f569b1e5e2e54..01af77a281b046a9dfc8d3de2d0eb69daa98c15e 100644 (file)
@@ -163,6 +163,12 @@ int lib_ring_buffer_channel_is_finalized(const struct channel *chan)
        return chan->finalized;
 }
 
+static inline
+int lib_ring_buffer_channel_is_disabled(const struct channel *chan)
+{
+       return atomic_read(&chan->record_disabled);
+}
+
 static inline
 unsigned long lib_ring_buffer_get_read_data_size(
                                const struct lib_ring_buffer_config *config,
This page took 0.026746 seconds and 4 git commands to generate.