Commit | Line | Data |
---|---|---|
5e77fc1f PM |
1 | #ifndef _URCU_QSBR_MAP_H |
2 | #define _URCU_QSBR_MAP_H | |
3 | ||
4 | /* | |
5 | * urcu-map.h | |
6 | * | |
7 | * Userspace RCU header -- name mapping to allow multiple flavors to be | |
8 | * used in the same executable. | |
9 | * | |
10 | * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
11 | * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. | |
12 | * | |
13 | * LGPL-compatible code should include this header with : | |
14 | * | |
15 | * #define _LGPL_SOURCE | |
16 | * #include <urcu.h> | |
17 | * | |
18 | * This library is free software; you can redistribute it and/or | |
19 | * modify it under the terms of the GNU Lesser General Public | |
20 | * License as published by the Free Software Foundation; either | |
21 | * version 2.1 of the License, or (at your option) any later version. | |
22 | * | |
23 | * This library is distributed in the hope that it will be useful, | |
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
26 | * Lesser General Public License for more details. | |
27 | * | |
28 | * You should have received a copy of the GNU Lesser General Public | |
29 | * License along with this library; if not, write to the Free Software | |
30 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
31 | * | |
32 | * IBM's contributions to this file may be relicensed under LGPLv2 or later. | |
33 | */ | |
34 | ||
35 | /* Mapping macros to allow multiple flavors in a single binary. */ | |
36 | ||
37 | #define rcu_read_lock rcu_read_lock_qsbr | |
38 | #define _rcu_read_lock _rcu_read_lock_qsbr | |
39 | #define rcu_read_unlock rcu_read_unlock_qsbr | |
40 | #define _rcu_read_unlock _rcu_read_unlock_qsbr | |
882f3357 MD |
41 | #define rcu_read_ongoing rcu_read_ongoing_qsbr |
42 | #define _rcu_read_ongoing _rcu_read_ongoing_qsbr | |
5e77fc1f PM |
43 | #define rcu_quiescent_state rcu_quiescent_state_qsbr |
44 | #define _rcu_quiescent_state _rcu_quiescent_state_qsbr | |
45 | #define rcu_thread_offline rcu_thread_offline_qsbr | |
46 | #define rcu_thread_online rcu_thread_online_qsbr | |
47 | #define rcu_register_thread rcu_register_thread_qsbr | |
48 | #define rcu_unregister_thread rcu_unregister_thread_qsbr | |
49 | #define rcu_exit rcu_exit_qsbr | |
50 | #define synchronize_rcu synchronize_rcu_qsbr | |
51 | #define rcu_reader rcu_reader_qsbr | |
52 | #define rcu_gp_ctr rcu_gp_ctr_qsbr | |
1de4df4b | 53 | #define rcu_gp_futex rcu_gp_futex_qsbr |
5e77fc1f PM |
54 | |
55 | #define get_cpu_call_rcu_data get_cpu_call_rcu_data_qsbr | |
56 | #define get_call_rcu_thread get_call_rcu_thread_qsbr | |
57 | #define create_call_rcu_data create_call_rcu_data_qsbr | |
58 | #define set_cpu_call_rcu_data set_cpu_call_rcu_data_qsbr | |
59 | #define get_default_call_rcu_data get_default_call_rcu_data_qsbr | |
60 | #define get_call_rcu_data get_call_rcu_data_qsbr | |
61 | #define get_thread_call_rcu_data get_thread_call_rcu_data_qsbr | |
62 | #define set_thread_call_rcu_data set_thread_call_rcu_data_qsbr | |
63 | #define create_all_cpu_call_rcu_data create_all_cpu_call_rcu_data_qsbr | |
64 | #define call_rcu call_rcu_qsbr | |
1de4df4b MD |
65 | #define call_rcu_data_free call_rcu_data_free_qsbr |
66 | #define call_rcu_before_fork call_rcu_before_fork_qsbr | |
67 | #define call_rcu_after_fork_parent call_rcu_after_fork_parent_qsbr | |
68 | #define call_rcu_after_fork_child call_rcu_after_fork_child_qsbr | |
5e77fc1f | 69 | |
0376e7b2 PM |
70 | #define defer_rcu defer_rcu_qsbr |
71 | #define rcu_defer_register_thread rcu_defer_register_thread_qsbr | |
72 | #define rcu_defer_unregister_thread rcu_defer_unregister_thread_qsbr | |
73 | #define rcu_defer_barrier rcu_defer_barrier_qsbr | |
74 | #define rcu_defer_barrier_thread rcu_defer_barrier_thread_qsbr | |
1de4df4b | 75 | #define rcu_defer_exit rcu_defer_exit_qsbr |
0376e7b2 | 76 | |
541d828d LJ |
77 | #define rcu_flavor rcu_flavor_qsbr |
78 | ||
1de4df4b MD |
79 | #define rcu_yield_active rcu_yield_active_memb_qsbr |
80 | #define rcu_rand_yield rcu_rand_yield_memb_qsbr | |
81 | ||
5e77fc1f | 82 | #endif /* _URCU_QSBR_MAP_H */ |