Move to kernel style SPDX license identifiers
[lttng-ust.git] / libcounter / shm_internal.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #ifndef _LIBCOUNTER_SHM_INTERNAL_H
8 #define _LIBCOUNTER_SHM_INTERNAL_H
9
10 struct lttng_counter_shm_ref {
11 volatile ssize_t index; /* within the object table */
12 volatile ssize_t offset; /* within the object */
13 };
14
15 #define DECLARE_LTTNG_COUNTER_SHMP(type, name) \
16 union { \
17 struct lttng_counter_shm_ref _ref; \
18 type *_type; \
19 } name
20
21 #endif /* _LIBCOUNTER_SHM_INTERNAL_H */
This page took 0.029115 seconds and 4 git commands to generate.