X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=inline;f=libustctl%2Fustctl.c;h=581de965c573ad2610e53692786cda5b976b1f34;hb=5224b5c8815b8afb888359719e1d05c1e2514c48;hp=3d886d3305c569f7df4092ae90ec076a932e0695;hpb=f3105c676e912bf2ec25d89e4889fb951c750b83;p=lttng-ust.git diff --git a/libustctl/ustctl.c b/libustctl/ustctl.c index 3d886d33..581de965 100644 --- a/libustctl/ustctl.c +++ b/libustctl/ustctl.c @@ -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. */