Commit | Line | Data |
---|---|---|
5e77fc1f | 1 | /* |
4477a870 | 2 | * urcu/map/urcu-bp.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 | ||
32 | /* Mapping macros to allow multiple flavors in a single binary. */ | |
33 | ||
4477a870 MD |
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 | |
5e77fc1f | 51 | |
4477a870 MD |
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 | |
5e77fc1f | 68 | |
4477a870 MD |
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 | |
0376e7b2 | 75 | |
4477a870 | 76 | #define rcu_flavor urcu_bp_flavor |
541d828d | 77 | |
4477a870 MD |
78 | #define rcu_yield_active urcu_bp_yield_active |
79 | #define rcu_rand_yield urcu_bp_rand_yield | |
1de4df4b | 80 | |
d0ec0ed2 | 81 | #define urcu_register_rculfhash_atfork \ |
4477a870 | 82 | urcu_bp_register_rculfhash_atfork |
d0ec0ed2 | 83 | #define urcu_unregister_rculfhash_atfork \ |
4477a870 MD |
84 | urcu_bp_unregister_rculfhash_atfork |
85 | ||
86 | ||
87 | /* Aliases for ABI(6) compat */ | |
d0ec0ed2 | 88 | |
4477a870 MD |
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 |