Add multiflavor compat identifiers
[userspace-rcu.git] / include / urcu / map / urcu-qsbr.h
CommitLineData
5e77fc1f 1/*
4477a870 2 * urcu/map/urcu-qsbr.h
5e77fc1f
PM
3 *
4 * Userspace RCU header -- name mapping to allow multiple flavors to be
5 * used in the same executable.
6 *
7 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
9 *
10 * LGPL-compatible code should include this header with :
11 *
12 * #define _LGPL_SOURCE
13 * #include <urcu.h>
14 *
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28 *
29 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
30 */
31
4477a870
MD
32#define rcu_read_lock urcu_qsbr_read_lock
33#define _rcu_read_lock _urcu_qsbr_read_lock
34#define rcu_read_unlock urcu_qsbr_read_unlock
35#define _rcu_read_unlock _urcu_qsbr_read_unlock
36#define rcu_read_ongoing urcu_qsbr_read_ongoing
37#define _rcu_read_ongoing _urcu_qsbr_read_ongoing
38#define rcu_quiescent_state urcu_qsbr_quiescent_state
39#define _rcu_quiescent_state _urcu_qsbr_quiescent_state
40#define rcu_thread_offline urcu_qsbr_thread_offline
41#define rcu_thread_online urcu_qsbr_thread_online
42#define rcu_register_thread urcu_qsbr_register_thread
43#define rcu_unregister_thread urcu_qsbr_unregister_thread
44#define rcu_exit urcu_qsbr_exit
45#define synchronize_rcu urcu_qsbr_synchronize_rcu
46#define rcu_reader urcu_qsbr_reader
47#define rcu_gp urcu_qsbr_gp
5e77fc1f 48
4477a870
MD
49#define get_cpu_call_rcu_data urcu_qsbr_get_cpu_call_rcu_data
50#define get_call_rcu_thread urcu_qsbr_get_call_rcu_thread
51#define create_call_rcu_data urcu_qsbr_create_call_rcu_data
52#define set_cpu_call_rcu_data urcu_qsbr_set_cpu_call_rcu_data
53#define get_default_call_rcu_data urcu_qsbr_get_default_call_rcu_data
54#define get_call_rcu_data urcu_qsbr_get_call_rcu_data
55#define get_thread_call_rcu_data urcu_qsbr_get_thread_call_rcu_data
56#define set_thread_call_rcu_data urcu_qsbr_set_thread_call_rcu_data
57#define create_all_cpu_call_rcu_data urcu_qsbr_create_all_cpu_call_rcu_data
58#define free_all_cpu_call_rcu_data urcu_qsbr_free_all_cpu_call_rcu_data
59#define call_rcu urcu_qsbr_call_rcu
60#define call_rcu_data_free urcu_qsbr_call_rcu_data_free
61#define call_rcu_before_fork urcu_qsbr_call_rcu_before_fork
62#define call_rcu_after_fork_parent urcu_qsbr_call_rcu_after_fork_parent
63#define call_rcu_after_fork_child urcu_qsbr_call_rcu_after_fork_child
64#define rcu_barrier urcu_qsbr_barrier
5e77fc1f 65
4477a870
MD
66#define defer_rcu urcu_qsbr_defer_rcu
67#define rcu_defer_register_thread urcu_qsbr_defer_register_thread
68#define rcu_defer_unregister_thread urcu_qsbr_defer_unregister_thread
69#define rcu_defer_barrier urcu_qsbr_defer_barrier
70#define rcu_defer_barrier_thread urcu_qsbr_defer_barrier_thread
71#define rcu_defer_exit urcu_qsbr_defer_exit
0376e7b2 72
4477a870 73#define rcu_flavor urcu_qsbr_flavor
541d828d 74
d0ec0ed2 75#define urcu_register_rculfhash_atfork \
4477a870 76 urcu_qsbr_register_rculfhash_atfork
d0ec0ed2 77#define urcu_unregister_rculfhash_atfork \
4477a870
MD
78 urcu_qsbr_unregister_rculfhash_atfork
79
80/* Aliases for ABI(6) compat */
81
82#define alias_rcu_flavor rcu_flavor_qsbr
83
84/* src/urcu.c */
85#define alias_rcu_read_lock rcu_read_lock_qsbr
86#define alias_rcu_read_unlock rcu_read_unlock_qsbr
87#define alias_rcu_read_ongoing rcu_read_ongoing_qsbr
88#define alias_rcu_register_thread rcu_register_thread_qsbr
89#define alias_rcu_unregister_thread rcu_unregister_thread_qsbr
90#define alias_rcu_init rcu_init_qsbr
91#define alias_synchronize_rcu synchronize_rcu_qsbr
92#define alias_rcu_reader rcu_reader_qsbr
93#define alias_rcu_gp rcu_gp_qsbr
94
95/* src/urcu-call-rcu-impl.h */
96#define alias_get_cpu_call_rcu_data get_cpu_call_rcu_data_qsbr
97#define alias_get_call_rcu_thread get_call_rcu_thread_qsbr
98#define alias_create_call_rcu_data create_call_rcu_data_qsbr
99#define alias_set_cpu_call_rcu_data set_cpu_call_rcu_data_qsbr
100#define alias_get_default_call_rcu_data get_default_call_rcu_data_qsbr
101#define alias_get_call_rcu_data get_call_rcu_data_qsbr
102#define alias_get_thread_call_rcu_data get_thread_call_rcu_data_qsbr
103#define alias_set_thread_call_rcu_data set_thread_call_rcu_data_qsbr
104#define alias_create_all_cpu_call_rcu_data \
105 create_all_cpu_call_rcu_data_qsbr
106#define alias_free_all_cpu_call_rcu_data \
107 free_all_cpu_call_rcu_data_qsbr
108#define alias_call_rcu call_rcu_qsbr
109#define alias_call_rcu_data_free call_rcu_data_free_qsbr
110#define alias_call_rcu_before_fork call_rcu_before_fork_qsbr
111#define alias_call_rcu_after_fork_parent \
112 call_rcu_after_fork_parent_qsbr
113#define alias_call_rcu_after_fork_child call_rcu_after_fork_child_qsbr
114#define alias_rcu_barrier rcu_barrier_qsbr
115
116#define alias_urcu_register_rculfhash_atfork \
117 urcu_register_rculfhash_atfork_qsbr
118#define alias_urcu_unregister_rculfhash_atfork \
d0ec0ed2
MD
119 urcu_unregister_rculfhash_atfork_qsbr
120
4477a870
MD
121/* src/urcu-defer-impl.h */
122#define alias_defer_rcu defer_rcu_qsbr
123#define alias_rcu_defer_register_thread rcu_defer_register_thread_qsbr
124#define alias_rcu_defer_unregister_thread \
125 rcu_defer_unregister_thread_qsbr
126#define alias_rcu_defer_barrier rcu_defer_barrier_qsbr
127#define alias_rcu_defer_barrier_thread rcu_defer_barrier_thread_qsbr
128#define alias_rcu_defer_exit rcu_defer_exit_qsbr
e37faee1
MJ
129
130
131/* Compat identifiers for prior undocumented multiflavor usage */
132#ifndef URCU_NO_COMPAT_IDENTIFIERS
133
134#define rcu_dereference_qsbr urcu_qsbr_dereference
135#define rcu_cmpxchg_pointer_qsbr urcu_qsbr_cmpxchg_pointer
136#define rcu_xchg_pointer_qsbr urcu_qsbr_xchg_pointer
137#define rcu_set_pointer_qsbr urcu_qsbr_set_pointer
138
139#define rcu_qsbr_before_fork urcu_qsbr_before_fork
140#define rcu_qsbr_after_fork_parent urcu_qsbr_after_fork_parent
141#define rcu_qsbr_after_fork_child urcu_qsbr_after_fork_child
142
143#define rcu_read_lock_qsbr urcu_qsbr_read_lock
144#define _rcu_read_lock_qsbr _urcu_qsbr_read_lock
145#define rcu_read_unlock_qsbr urcu_qsbr_read_unlock
146#define _rcu_read_unlock_qsbr _urcu_qsbr_read_unlock
147#define rcu_read_ongoing_qsbr urcu_qsbr_read_ongoing
148#define _rcu_read_ongoing_qsbr _urcu_qsbr_read_ongoing
149#define rcu_register_thread_qsbr urcu_qsbr_register_thread
150#define rcu_unregister_thread_qsbr urcu_qsbr_unregister_thread
151#define rcu_init_qsbr urcu_qsbr_init
152#define rcu_exit_qsbr urcu_qsbr_exit
153#define synchronize_rcu_qsbr urcu_qsbr_synchronize_rcu
154#define rcu_reader_qsbr urcu_qsbr_reader
155#define rcu_gp_qsbr urcu_qsbr_gp
156
157#define get_cpu_call_rcu_data_qsbr urcu_qsbr_get_cpu_call_rcu_data
158#define get_call_rcu_thread_qsbr urcu_qsbr_get_call_rcu_thread
159#define create_call_rcu_data_qsbr urcu_qsbr_create_call_rcu_data
160#define set_cpu_call_rcu_data_qsbr urcu_qsbr_set_cpu_call_rcu_data
161#define get_default_call_rcu_data_qsbr urcu_qsbr_get_default_call_rcu_data
162#define get_call_rcu_data_qsbr urcu_qsbr_get_call_rcu_data
163#define get_thread_call_rcu_data_qsbr urcu_qsbr_get_thread_call_rcu_data
164#define set_thread_call_rcu_data_qsbr urcu_qsbr_set_thread_call_rcu_data
165#define create_all_cpu_call_rcu_data_qsbr \
166 urcu_qsbr_create_all_cpu_call_rcu_data
167#define free_all_cpu_call_rcu_data_qsbr urcu_qsbr_free_all_cpu_call_rcu_data
168#define call_rcu_qsbr urcu_qsbr_call_rcu
169#define call_rcu_data_free_qsbr urcu_qsbr_call_rcu_data_free
170#define call_rcu_before_fork_qsbr urcu_qsbr_call_rcu_before_fork
171#define call_rcu_after_fork_parent_qsbr urcu_qsbr_call_rcu_after_fork_parent
172#define call_rcu_after_fork_child_qsbr urcu_qsbr_call_rcu_after_fork_child
173#define rcu_barrier_qsbr urcu_qsbr_barrier
174
175#define defer_rcu_qsbr urcu_qsbr_defer_rcu
176#define rcu_defer_register_thread_qsbr urcu_qsbr_defer_register_thread
177#define rcu_defer_unregister_thread_qsbr \
178 urcu_qsbr_defer_unregister_thread
179#define rcu_defer_barrier_qsbr urcu_qsbr_defer_barrier
180#define rcu_defer_barrier_thread_qsbr urcu_qsbr_defer_barrier_thread
181#define rcu_defer_exit_qsbr urcu_qsbr_defer_exit
182
183#define rcu_flavor_qsbr urcu_qsbr_flavor
184
185#define urcu_register_rculfhash_atfork_qsbr \
186 urcu_qsbr_register_rculfhash_atfork
187#define urcu_unregister_rculfhash_atfork_qsbr \
188 urcu_qsbr_unregister_rculfhash_atfork
189
190#endif /* URCU_NO_COMPAT_IDENTIFIERS */
This page took 0.044224 seconds and 4 git commands to generate.