Use DMB only on ARMv7
[urcu.git] / include / urcu / map / urcu-bp.h
1 /*
2 * urcu/map/urcu-bp.h
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
32 /* Mapping macros to allow multiple flavors in a single binary. */
33
34 #define rcu_read_lock urcu_bp_read_lock
35 #define _rcu_read_lock _urcu_bp_read_lock
36 #define rcu_read_unlock urcu_bp_read_unlock
37 #define _rcu_read_unlock _urcu_bp_read_unlock
38 #define rcu_read_ongoing urcu_bp_read_ongoing
39 #define _rcu_read_ongoing _urcu_bp_read_ongoing
40 #define rcu_quiescent_state urcu_bp_quiescent_state
41 #define _rcu_quiescent_state _urcu_bp_quiescent_state
42 #define rcu_thread_offline urcu_bp_thread_offline
43 #define rcu_thread_online urcu_bp_thread_online
44 #define rcu_register_thread urcu_bp_register_thread
45 #define rcu_unregister_thread urcu_bp_unregister_thread
46 #define rcu_init urcu_bp_init
47 #define rcu_exit urcu_bp_exit
48 #define synchronize_rcu urcu_bp_synchronize_rcu
49 #define rcu_reader urcu_bp_reader
50 #define rcu_gp urcu_bp_gp
51
52 #define get_cpu_call_rcu_data urcu_bp_get_cpu_call_rcu_data
53 #define get_call_rcu_thread urcu_bp_get_call_rcu_thread
54 #define create_call_rcu_data urcu_bp_create_call_rcu_data
55 #define set_cpu_call_rcu_data urcu_bp_set_cpu_call_rcu_data
56 #define get_default_call_rcu_data urcu_bp_get_default_call_rcu_data
57 #define get_call_rcu_data urcu_bp_get_call_rcu_data
58 #define get_thread_call_rcu_data urcu_bp_get_thread_call_rcu_data
59 #define set_thread_call_rcu_data urcu_bp_set_thread_call_rcu_data
60 #define create_all_cpu_call_rcu_data urcu_bp_create_all_cpu_call_rcu_data
61 #define free_all_cpu_call_rcu_data urcu_bp_free_all_cpu_call_rcu_data
62 #define call_rcu urcu_bp_call_rcu
63 #define call_rcu_data_free urcu_bp_call_rcu_data_free
64 #define call_rcu_before_fork urcu_bp_call_rcu_before_fork
65 #define call_rcu_after_fork_parent urcu_bp_call_rcu_after_fork_parent
66 #define call_rcu_after_fork_child urcu_bp_call_rcu_after_fork_child
67 #define rcu_barrier urcu_bp_barrier
68
69 #define defer_rcu urcu_bp_defer_rcu
70 #define rcu_defer_register_thread urcu_bp_defer_register_thread
71 #define rcu_defer_unregister_thread urcu_bp_defer_unregister_thread
72 #define rcu_defer_barrier urcu_bp_defer_barrier
73 #define rcu_defer_barrier_thread urcu_bp_defer_barrier_thread
74 #define rcu_defer_exit urcu_bp_defer_exit
75
76 #define rcu_flavor urcu_bp_flavor
77
78 #define rcu_yield_active urcu_bp_yield_active
79 #define rcu_rand_yield urcu_bp_rand_yield
80
81 #define urcu_register_rculfhash_atfork \
82 urcu_bp_register_rculfhash_atfork
83 #define urcu_unregister_rculfhash_atfork \
84 urcu_bp_unregister_rculfhash_atfork
85
86
87 /* Aliases for ABI(6) compat */
88
89 #define alias_rcu_flavor rcu_flavor_bp
90
91 #define alias_get_cpu_call_rcu_data get_cpu_call_rcu_data_bp
92 #define alias_get_call_rcu_thread get_call_rcu_thread_bp
93 #define alias_create_call_rcu_data create_call_rcu_data_bp
94 #define alias_set_cpu_call_rcu_data set_cpu_call_rcu_data_bp
95 #define alias_get_default_call_rcu_data get_default_call_rcu_data_bp
96 #define alias_get_call_rcu_data get_call_rcu_data_bp
97 #define alias_get_thread_call_rcu_data get_thread_call_rcu_data_bp
98 #define alias_set_thread_call_rcu_data set_thread_call_rcu_data_bp
99 #define alias_create_all_cpu_call_rcu_data \
100 create_all_cpu_call_rcu_data_bp
101 #define alias_free_all_cpu_call_rcu_data \
102 free_all_cpu_call_rcu_data_bp
103 #define alias_call_rcu call_rcu_bp
104 #define alias_call_rcu_data_free call_rcu_data_free_bp
105 #define alias_call_rcu_before_fork call_rcu_before_fork_bp
106 #define alias_call_rcu_after_fork_parent \
107 call_rcu_after_fork_parent_bp
108 #define alias_call_rcu_after_fork_child call_rcu_after_fork_child_bp
109 #define alias_rcu_barrier rcu_barrier_bp
110
111 #define alias_defer_rcu defer_rcu_bp
112 #define alias_rcu_defer_register_thread rcu_defer_register_thread_bp
113 #define alias_rcu_defer_unregister_thread \
114 rcu_defer_unregister_thread_bp
115 #define alias_rcu_defer_barrier rcu_defer_barrier_bp
116 #define alias_rcu_defer_barrier_thread rcu_defer_barrier_thread_bp
117 #define alias_rcu_defer_exit rcu_defer_exit_bp
118
119 #define alias_urcu_register_rculfhash_atfork \
120 urcu_register_rculfhash_atfork_bp
121 #define alias_urcu_unregister_rculfhash_atfork \
122 urcu_unregister_rculfhash_atfork_bp
123
124
125 /* Compat identifiers for prior undocumented multiflavor usage */
126 #ifndef URCU_NO_COMPAT_IDENTIFIERS
127
128 #define rcu_dereference_bp urcu_bp_dereference
129 #define rcu_cmpxchg_pointer_bp urcu_bp_cmpxchg_pointer
130 #define rcu_xchg_pointer_bp urcu_bp_xchg_pointer
131 #define rcu_set_pointer_bp urcu_bp_set_pointer
132
133 #define rcu_bp_before_fork urcu_bp_before_fork
134 #define rcu_bp_after_fork_parent urcu_bp_after_fork_parent
135 #define rcu_bp_after_fork_child urcu_bp_after_fork_child
136
137 #define rcu_read_lock_bp urcu_bp_read_lock
138 #define _rcu_read_lock_bp _urcu_bp_read_lock
139 #define rcu_read_unlock_bp urcu_bp_read_unlock
140 #define _rcu_read_unlock_bp _urcu_bp_read_unlock
141 #define rcu_read_ongoing_bp urcu_bp_read_ongoing
142 #define _rcu_read_ongoing_bp _urcu_bp_read_ongoing
143 #define rcu_register_thread_bp urcu_bp_register_thread
144 #define rcu_unregister_thread_bp urcu_bp_unregister_thread
145 #define rcu_init_bp urcu_bp_init
146 #define rcu_exit_bp urcu_bp_exit
147 #define synchronize_rcu_bp urcu_bp_synchronize_rcu
148 #define rcu_reader_bp urcu_bp_reader
149 #define rcu_gp_bp urcu_bp_gp
150
151 #define get_cpu_call_rcu_data_bp urcu_bp_get_cpu_call_rcu_data
152 #define get_call_rcu_thread_bp urcu_bp_get_call_rcu_thread
153 #define create_call_rcu_data_bp urcu_bp_create_call_rcu_data
154 #define set_cpu_call_rcu_data_bp urcu_bp_set_cpu_call_rcu_data
155 #define get_default_call_rcu_data_bp urcu_bp_get_default_call_rcu_data
156 #define get_call_rcu_data_bp urcu_bp_get_call_rcu_data
157 #define get_thread_call_rcu_data_bp urcu_bp_get_thread_call_rcu_data
158 #define set_thread_call_rcu_data_bp urcu_bp_set_thread_call_rcu_data
159 #define create_all_cpu_call_rcu_data_bp urcu_bp_create_all_cpu_call_rcu_data
160 #define free_all_cpu_call_rcu_data_bp urcu_bp_free_all_cpu_call_rcu_data
161 #define call_rcu_bp urcu_bp_call_rcu
162 #define call_rcu_data_free_bp urcu_bp_call_rcu_data_free
163 #define call_rcu_before_fork_bp urcu_bp_call_rcu_before_fork
164 #define call_rcu_after_fork_parent_bp urcu_bp_call_rcu_after_fork_parent
165 #define call_rcu_after_fork_child_bp urcu_bp_call_rcu_after_fork_child
166 #define rcu_barrier_bp urcu_bp_barrier
167
168 #define defer_rcu_bp urcu_bp_defer_rcu
169 #define rcu_defer_register_thread_bp urcu_bp_defer_register_thread
170 #define rcu_defer_unregister_thread_bp urcu_bp_defer_unregister_thread
171 #define rcu_defer_barrier_bp urcu_bp_defer_barrier
172 #define rcu_defer_barrier_thread_bp urcu_bp_defer_barrier_thread
173 #define rcu_defer_exit_bp urcu_bp_defer_exit
174
175 #define rcu_flavor_bp urcu_bp_flavor
176
177 #define rcu_yield_active_bp urcu_bp_yield_active
178 #define rcu_rand_yield_bp urcu_bp_rand_yield
179
180 #define urcu_register_rculfhash_atfork_bp \
181 urcu_bp_register_rculfhash_atfork
182 #define urcu_unregister_rculfhash_atfork_bp \
183 urcu_bp_unregister_rculfhash_atfork
184
185 #endif /* URCU_NO_COMPAT_IDENTIFIERS */
This page took 0.032041 seconds and 4 git commands to generate.