Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust / lttng-ust-urcu-pointer.c
CommitLineData
10544ee8 1/*
c0c0989a 2 * SPDX-License-Identifier: LGPL-2.1-or-later
10544ee8
MD
3 *
4 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
6 *
c0c0989a 7 * library wrappers to be used by non-LGPL compatible source code.
10544ee8
MD
8 */
9
10#include <urcu/uatomic.h>
11
12#include <lttng/urcu/static/pointer.h>
13/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
14#include <lttng/urcu/pointer.h>
15
16void *lttng_ust_rcu_dereference_sym(void *p)
17{
18 return _lttng_ust_rcu_dereference(p);
19}
20
21void *lttng_ust_rcu_set_pointer_sym(void **p, void *v)
22{
23 cmm_wmb();
24 uatomic_set(p, v);
25 return v;
26}
27
28void *lttng_ust_rcu_xchg_pointer_sym(void **p, void *v)
29{
30 cmm_wmb();
31 return uatomic_xchg(p, v);
32}
33
34void *lttng_ust_rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new)
35{
36 cmm_wmb();
37 return uatomic_cmpxchg(p, old, _new);
38}
This page took 0.02598 seconds and 4 git commands to generate.