9ccc6c292861fbf056b0ec420a98d5ed98b6c9dd
[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 #define start_poll_synchronize_rcu urcu_bp_start_poll_synchronize_rcu
87 #define poll_state_synchronize_rcu urcu_bp_poll_state_synchronize_rcu
88
89
90 /* Compat identifiers for prior undocumented multiflavor usage */
91 #ifndef URCU_NO_COMPAT_IDENTIFIERS
92
93 #define rcu_dereference_bp urcu_bp_dereference
94 #define rcu_cmpxchg_pointer_bp urcu_bp_cmpxchg_pointer
95 #define rcu_xchg_pointer_bp urcu_bp_xchg_pointer
96 #define rcu_set_pointer_bp urcu_bp_set_pointer
97
98 #define rcu_bp_before_fork urcu_bp_before_fork
99 #define rcu_bp_after_fork_parent urcu_bp_after_fork_parent
100 #define rcu_bp_after_fork_child urcu_bp_after_fork_child
101
102 #define rcu_read_lock_bp urcu_bp_read_lock
103 #define _rcu_read_lock_bp _urcu_bp_read_lock
104 #define rcu_read_unlock_bp urcu_bp_read_unlock
105 #define _rcu_read_unlock_bp _urcu_bp_read_unlock
106 #define rcu_read_ongoing_bp urcu_bp_read_ongoing
107 #define _rcu_read_ongoing_bp _urcu_bp_read_ongoing
108 #define rcu_register_thread_bp urcu_bp_register_thread
109 #define rcu_unregister_thread_bp urcu_bp_unregister_thread
110 #define rcu_init_bp urcu_bp_init
111 #define rcu_exit_bp urcu_bp_exit
112 #define synchronize_rcu_bp urcu_bp_synchronize_rcu
113 #define rcu_reader_bp urcu_bp_reader
114 #define rcu_gp_bp urcu_bp_gp
115
116 #define get_cpu_call_rcu_data_bp urcu_bp_get_cpu_call_rcu_data
117 #define get_call_rcu_thread_bp urcu_bp_get_call_rcu_thread
118 #define create_call_rcu_data_bp urcu_bp_create_call_rcu_data
119 #define set_cpu_call_rcu_data_bp urcu_bp_set_cpu_call_rcu_data
120 #define get_default_call_rcu_data_bp urcu_bp_get_default_call_rcu_data
121 #define get_call_rcu_data_bp urcu_bp_get_call_rcu_data
122 #define get_thread_call_rcu_data_bp urcu_bp_get_thread_call_rcu_data
123 #define set_thread_call_rcu_data_bp urcu_bp_set_thread_call_rcu_data
124 #define create_all_cpu_call_rcu_data_bp urcu_bp_create_all_cpu_call_rcu_data
125 #define free_all_cpu_call_rcu_data_bp urcu_bp_free_all_cpu_call_rcu_data
126 #define call_rcu_bp urcu_bp_call_rcu
127 #define call_rcu_data_free_bp urcu_bp_call_rcu_data_free
128 #define call_rcu_before_fork_bp urcu_bp_call_rcu_before_fork
129 #define call_rcu_after_fork_parent_bp urcu_bp_call_rcu_after_fork_parent
130 #define call_rcu_after_fork_child_bp urcu_bp_call_rcu_after_fork_child
131 #define rcu_barrier_bp urcu_bp_barrier
132
133 #define defer_rcu_bp urcu_bp_defer_rcu
134 #define rcu_defer_register_thread_bp urcu_bp_defer_register_thread
135 #define rcu_defer_unregister_thread_bp urcu_bp_defer_unregister_thread
136 #define rcu_defer_barrier_bp urcu_bp_defer_barrier
137 #define rcu_defer_barrier_thread_bp urcu_bp_defer_barrier_thread
138 #define rcu_defer_exit_bp urcu_bp_defer_exit
139
140 #define rcu_flavor_bp urcu_bp_flavor
141
142 #define rcu_yield_active_bp urcu_bp_yield_active
143 #define rcu_rand_yield_bp urcu_bp_rand_yield
144
145 #define urcu_register_rculfhash_atfork_bp \
146 urcu_bp_register_rculfhash_atfork
147 #define urcu_unregister_rculfhash_atfork_bp \
148 urcu_bp_unregister_rculfhash_atfork
149
150 #endif /* URCU_NO_COMPAT_IDENTIFIERS */
This page took 0.031701 seconds and 3 git commands to generate.