Return POLLERR if channel is disabled (error state)
[lttng-modules.git] / ltt-ring-buffer-client.h
index d14297857925b274fcf89222d37895adb97bcd8c..0d8051ece35bd5ec2e42e3641524b1c5c6a993fb 100644 (file)
@@ -472,6 +472,12 @@ int ltt_is_finalized(struct channel *chan)
        return lib_ring_buffer_channel_is_finalized(chan);
 }
 
+static
+int ltt_is_disabled(struct channel *chan)
+{
+       return lib_ring_buffer_channel_is_disabled(chan);
+}
+
 static struct ltt_transport ltt_relay_transport = {
        .name = "relay-" RING_BUFFER_MODE_TEMPLATE_STRING,
        .owner = THIS_MODULE,
@@ -487,6 +493,7 @@ static struct ltt_transport ltt_relay_transport = {
                .get_reader_wait_queue = ltt_get_reader_wait_queue,
                .get_hp_wait_queue = ltt_get_hp_wait_queue,
                .is_finalized = ltt_is_finalized,
+               .is_disabled = ltt_is_disabled,
        },
 };
 
This page took 0.023621 seconds and 4 git commands to generate.