Commit | Line | Data |
---|---|---|
74d81a6c | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: GPL-2.0-only |
74d81a6c | 3 | * |
c0c0989a MJ |
4 | * Copyright (C) 2011 Julien Desfossez <julien.desfossez@polymtl.ca> |
5 | * Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
74d81a6c MD |
6 | */ |
7 | ||
8 | #ifndef _LTTNG_UST_CTL_PRIVATE_H | |
9 | #define _LTTNG_UST_CTL_PRIVATE_H | |
10 | ||
11 | #include <lttng/ust-ctl.h> | |
12 | ||
13 | /* | |
14 | * Map channel lttng_ust_shm_handle and add streams. Typically performed | |
15 | * by the application to map the objects into its memory space. | |
16 | */ | |
17 | struct lttng_ust_shm_handle * | |
18 | ustctl_map_channel(struct lttng_ust_object_data *chan_data); | |
19 | int ustctl_add_stream(struct lttng_ust_shm_handle *lttng_ust_shm_handle, | |
20 | struct lttng_ust_object_data *stream_data); | |
21 | /* | |
22 | * Note: the lttng_ust_object_data from which the lttng_ust_shm_handle | |
23 | * is derived can only be released after unmapping the handle. | |
24 | */ | |
25 | void ustctl_unmap_channel(struct lttng_ust_shm_handle *lttng_ust_shm_handle); | |
26 | ||
27 | #endif /* _LTTNG_UST_CTL_PRIVATE_H */ |