Commit | Line | Data |
---|---|---|
d3d3857f MJ |
1 | // SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation. |
2 | // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
3 | // | |
4 | // SPDX-License-Identifier: LGPL-2.1-or-later | |
5 | ||
4477a870 | 6 | /* |
4477a870 MD |
7 | * Userspace RCU header -- name mapping to allow multiple flavors to be |
8 | * used in the same executable. | |
9 | * | |
4477a870 MD |
10 | * LGPL-compatible code should include this header with : |
11 | * | |
12 | * #define _LGPL_SOURCE | |
13 | * #include <urcu.h> | |
14 | * | |
4477a870 MD |
15 | * IBM's contributions to this file may be relicensed under LGPLv2 or later. |
16 | */ | |
17 | ||
18 | #define rcu_read_lock urcu_memb_read_lock | |
19 | #define _rcu_read_lock _urcu_memb_read_lock | |
20 | #define rcu_read_unlock urcu_memb_read_unlock | |
21 | #define _rcu_read_unlock _urcu_memb_read_unlock | |
22 | #define rcu_read_ongoing urcu_memb_read_ongoing | |
23 | #define _rcu_read_ongoing _urcu_memb_read_ongoing | |
24 | #define rcu_quiescent_state urcu_memb_quiescent_state | |
25 | #define _rcu_quiescent_state _urcu_memb_quiescent_state | |
26 | #define rcu_thread_offline urcu_memb_thread_offline | |
27 | #define rcu_thread_online urcu_memb_thread_online | |
28 | #define rcu_register_thread urcu_memb_register_thread | |
29 | #define rcu_unregister_thread urcu_memb_unregister_thread | |
30 | #define rcu_init urcu_memb_init | |
31 | #define rcu_exit urcu_memb_exit | |
32 | #define synchronize_rcu urcu_memb_synchronize_rcu | |
33 | #define rcu_reader urcu_memb_reader | |
34 | #define rcu_gp urcu_memb_gp | |
35 | ||
36 | #define get_cpu_call_rcu_data urcu_memb_get_cpu_call_rcu_data | |
37 | #define get_call_rcu_thread urcu_memb_get_call_rcu_thread | |
38 | #define create_call_rcu_data urcu_memb_create_call_rcu_data | |
39 | #define set_cpu_call_rcu_data urcu_memb_set_cpu_call_rcu_data | |
40 | #define get_default_call_rcu_data urcu_memb_get_default_call_rcu_data | |
41 | #define get_call_rcu_data urcu_memb_get_call_rcu_data | |
42 | #define get_thread_call_rcu_data urcu_memb_get_thread_call_rcu_data | |
43 | #define set_thread_call_rcu_data urcu_memb_set_thread_call_rcu_data | |
44 | #define create_all_cpu_call_rcu_data urcu_memb_create_all_cpu_call_rcu_data | |
45 | #define free_all_cpu_call_rcu_data urcu_memb_free_all_cpu_call_rcu_data | |
46 | #define call_rcu urcu_memb_call_rcu | |
47 | #define call_rcu_data_free urcu_memb_call_rcu_data_free | |
48 | #define call_rcu_before_fork urcu_memb_call_rcu_before_fork | |
49 | #define call_rcu_after_fork_parent urcu_memb_call_rcu_after_fork_parent | |
50 | #define call_rcu_after_fork_child urcu_memb_call_rcu_after_fork_child | |
51 | #define rcu_barrier urcu_memb_barrier | |
52 | ||
53 | #define defer_rcu urcu_memb_defer_rcu | |
54 | #define rcu_defer_register_thread urcu_memb_defer_register_thread | |
55 | #define rcu_defer_unregister_thread urcu_memb_defer_unregister_thread | |
56 | #define rcu_defer_barrier urcu_memb_defer_barrier | |
57 | #define rcu_defer_barrier_thread urcu_memb_defer_barrier_thread | |
58 | #define rcu_defer_exit urcu_memb_defer_exit | |
59 | ||
60 | #define rcu_flavor urcu_memb_flavor | |
61 | ||
62 | #define urcu_register_rculfhash_atfork \ | |
63 | urcu_memb_register_rculfhash_atfork | |
64 | #define urcu_unregister_rculfhash_atfork \ | |
65 | urcu_memb_unregister_rculfhash_atfork | |
66 | ||
111bda8f MD |
67 | #define start_poll_synchronize_rcu urcu_memb_start_poll_synchronize_rcu |
68 | #define poll_state_synchronize_rcu urcu_memb_poll_state_synchronize_rcu | |
69 | ||
4477a870 | 70 | |
e37faee1 MJ |
71 | /* Compat identifiers for prior undocumented multiflavor usage */ |
72 | #ifndef URCU_NO_COMPAT_IDENTIFIERS | |
73 | ||
74 | #define rcu_dereference_memb urcu_memb_dereference | |
75 | #define rcu_cmpxchg_pointer_memb urcu_memb_cmpxchg_pointer | |
76 | #define rcu_xchg_pointer_memb urcu_memb_xchg_pointer | |
77 | #define rcu_set_pointer_memb urcu_memb_set_pointer | |
78 | ||
79 | #define rcu_memb_before_fork urcu_memb_before_fork | |
80 | #define rcu_memb_after_fork_parent urcu_memb_after_fork_parent | |
81 | #define rcu_memb_after_fork_child urcu_memb_after_fork_child | |
82 | ||
83 | #define rcu_read_lock_memb urcu_memb_read_lock | |
84 | #define _rcu_read_lock_memb _urcu_memb_read_lock | |
85 | #define rcu_read_unlock_memb urcu_memb_read_unlock | |
86 | #define _rcu_read_unlock_memb _urcu_memb_read_unlock | |
87 | #define rcu_read_ongoing_memb urcu_memb_read_ongoing | |
88 | #define _rcu_read_ongoing_memb _urcu_memb_read_ongoing | |
89 | #define rcu_register_thread_memb urcu_memb_register_thread | |
90 | #define rcu_unregister_thread_memb urcu_memb_unregister_thread | |
91 | #define rcu_init_memb urcu_memb_init | |
92 | #define rcu_exit_memb urcu_memb_exit | |
93 | #define synchronize_rcu_memb urcu_memb_synchronize_rcu | |
94 | #define rcu_reader_memb urcu_memb_reader | |
95 | #define rcu_gp_memb urcu_memb_gp | |
96 | ||
97 | #define get_cpu_call_rcu_data_memb urcu_memb_get_cpu_call_rcu_data | |
98 | #define get_call_rcu_thread_memb urcu_memb_get_call_rcu_thread | |
99 | #define create_call_rcu_data_memb urcu_memb_create_call_rcu_data | |
100 | #define set_cpu_call_rcu_data_memb urcu_memb_set_cpu_call_rcu_data | |
101 | #define get_default_call_rcu_data_memb urcu_memb_get_default_call_rcu_data | |
102 | #define get_call_rcu_data_memb urcu_memb_get_call_rcu_data | |
103 | #define get_thread_call_rcu_data_memb urcu_memb_get_thread_call_rcu_data | |
104 | #define set_thread_call_rcu_data_memb urcu_memb_set_thread_call_rcu_data | |
105 | #define create_all_cpu_call_rcu_data_memb \ | |
106 | urcu_memb_create_all_cpu_call_rcu_data | |
107 | #define free_all_cpu_call_rcu_data_memb urcu_memb_free_all_cpu_call_rcu_data | |
108 | #define call_rcu_memb urcu_memb_call_rcu | |
109 | #define call_rcu_data_free_memb urcu_memb_call_rcu_data_free | |
110 | #define call_rcu_before_fork_memb urcu_memb_call_rcu_before_fork | |
111 | #define call_rcu_after_fork_parent_memb urcu_memb_call_rcu_after_fork_parent | |
112 | #define call_rcu_after_fork_child_memb urcu_memb_call_rcu_after_fork_child | |
113 | #define rcu_barrier_memb urcu_memb_barrier | |
114 | ||
115 | #define defer_rcu_memb urcu_memb_defer_rcu | |
116 | #define rcu_defer_register_thread_memb urcu_memb_defer_register_thread | |
117 | #define rcu_defer_unregister_thread_memb \ | |
118 | urcu_memb_defer_unregister_thread | |
119 | #define rcu_defer_barrier_memb urcu_memb_defer_barrier | |
120 | #define rcu_defer_barrier_thread_memb urcu_memb_defer_barrier_thread | |
121 | #define rcu_defer_exit_memb urcu_memb_defer_exit | |
122 | ||
123 | #define rcu_flavor_memb urcu_memb_flavor | |
124 | ||
125 | #define urcu_register_rculfhash_atfork_memb \ | |
126 | urcu_memb_register_rculfhash_atfork | |
127 | #define urcu_unregister_rculfhash_atfork_memb \ | |
128 | urcu_memb_unregister_rculfhash_atfork | |
129 | ||
130 | #endif /* URCU_NO_COMPAT_IDENTIFIERS */ |