2 * Copyright (C) 2017 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 #ifndef NOTIFICATION_THREAD_INTERNAL_H
19 #define NOTIFICATION_THREAD_INTERNAL_H
21 #include <lttng/ref-internal.h>
22 #include <urcu/rculfhash.h>
27 enum lttng_domain_type domain
;
36 * Back-ref (weak) to all channels in this session.
37 * The hashtable's key is a hash of (struct channel_key) and
38 * the value is of type (struct channel_info *).
40 struct cds_lfht
*channel_infos_ht
;
41 /* Node in the notification thread state's sessions_ht. */
42 struct cds_lfht_node sessions_ht_node
;
43 uint64_t consumed_data_size
;
47 struct channel_key key
;
51 * A channel info holds a reference (lttng_ref) on session_info.
52 * session_info, in return, holds a weak reference to the channel.
54 struct session_info
*session_info
;
55 /* Node in the notification thread state's channels_ht. */
56 struct cds_lfht_node channels_ht_node
;
57 /* Node in the session_info's channels_ht. */
58 struct cds_lfht_node session_info_channels_ht_node
;
61 #endif /* NOTIFICATION_THREAD_INTERNAL_H */