Implement ustctl_unmap_channel()
[lttng-ust.git] / libustctl / ustctl.c
index 3d886d3305c569f7df4092ae90ec076a932e0695..581de965c573ad2610e53692786cda5b976b1f34 100644 (file)
@@ -444,6 +444,14 @@ int ustctl_add_stream(struct shm_handle *handle,
        return 0;
 }
 
+void ustctl_unmap_channel(struct shm_handle *handle)
+{
+       struct channel *chan;
+
+       chan = shmp(handle, handle->chan);
+       channel_destroy(chan, handle, 1);
+}
+
 /* For mmap mode, readable without "get" operation */
 
 /* returns the length to mmap. */
This page took 0.022836 seconds and 4 git commands to generate.