2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #ifndef _LIBRINGBUFFER_SHM_TYPES_H
8 #define _LIBRINGBUFFER_SHM_TYPES_H
13 #include "shm_internal.h"
15 struct lttng_ust_lib_ring_buffer_channel
;
17 enum shm_object_type
{
23 enum shm_object_type type
;
24 size_t index
; /* within the object table */
25 int shm_fd
; /* shm fd */
26 int wait_fd
[2]; /* fd for wait/wakeup */
28 size_t memory_map_size
;
29 uint64_t allocated_len
;
33 struct shm_object_table
{
36 struct shm_object objects
[];
39 struct lttng_ust_shm_handle
{
40 struct shm_object_table
*table
;
41 DECLARE_SHMP(struct lttng_ust_lib_ring_buffer_channel
, chan
);
44 #endif /* _LIBRINGBUFFER_SHM_TYPES_H */