aarch64: Implement caa_cpu_relax as yield instruction
[userspace-rcu.git] / include / urcu / map / urcu-mb.h
1 /*
2 * urcu/map/urcu-mb.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 #define rcu_read_lock urcu_mb_read_lock
33 #define _rcu_read_lock _urcu_mb_read_lock
34 #define rcu_read_unlock urcu_mb_read_unlock
35 #define _rcu_read_unlock _urcu_mb_read_unlock
36 #define rcu_read_ongoing urcu_mb_read_ongoing
37 #define _rcu_read_ongoing _urcu_mb_read_ongoing
38 #define rcu_quiescent_state urcu_mb_quiescent_state
39 #define _rcu_quiescent_state _urcu_mb_quiescent_state
40 #define rcu_thread_offline urcu_mb_thread_offline
41 #define rcu_thread_online urcu_mb_thread_online
42 #define rcu_register_thread urcu_mb_register_thread
43 #define rcu_unregister_thread urcu_mb_unregister_thread
44 #define rcu_init urcu_mb_init
45 #define rcu_exit urcu_mb_exit
46 #define synchronize_rcu urcu_mb_synchronize_rcu
47 #define rcu_reader urcu_mb_reader
48 #define rcu_gp urcu_mb_gp
49
50 #define get_cpu_call_rcu_data urcu_mb_get_cpu_call_rcu_data
51 #define get_call_rcu_thread urcu_mb_get_call_rcu_thread
52 #define create_call_rcu_data urcu_mb_create_call_rcu_data
53 #define set_cpu_call_rcu_data urcu_mb_set_cpu_call_rcu_data
54 #define get_default_call_rcu_data urcu_mb_get_default_call_rcu_data
55 #define get_call_rcu_data urcu_mb_get_call_rcu_data
56 #define get_thread_call_rcu_data urcu_mb_get_thread_call_rcu_data
57 #define set_thread_call_rcu_data urcu_mb_set_thread_call_rcu_data
58 #define create_all_cpu_call_rcu_data urcu_mb_create_all_cpu_call_rcu_data
59 #define free_all_cpu_call_rcu_data urcu_mb_free_all_cpu_call_rcu_data
60 #define call_rcu urcu_mb_call_rcu
61 #define call_rcu_data_free urcu_mb_call_rcu_data_free
62 #define call_rcu_before_fork urcu_mb_call_rcu_before_fork
63 #define call_rcu_after_fork_parent urcu_mb_call_rcu_after_fork_parent
64 #define call_rcu_after_fork_child urcu_mb_call_rcu_after_fork_child
65 #define rcu_barrier urcu_mb_barrier
66
67 #define defer_rcu urcu_mb_defer_rcu
68 #define rcu_defer_register_thread urcu_mb_defer_register_thread
69 #define rcu_defer_unregister_thread urcu_mb_defer_unregister_thread
70 #define rcu_defer_barrier urcu_mb_defer_barrier
71 #define rcu_defer_barrier_thread urcu_mb_defer_barrier_thread
72 #define rcu_defer_exit urcu_mb_defer_exit
73
74 #define rcu_flavor urcu_mb_flavor
75
76 #define urcu_register_rculfhash_atfork \
77 urcu_mb_register_rculfhash_atfork
78 #define urcu_unregister_rculfhash_atfork \
79 urcu_mb_unregister_rculfhash_atfork
80
81 #define start_poll_synchronize_rcu urcu_mb_start_poll_synchronize_rcu
82 #define poll_state_synchronize_rcu urcu_mb_poll_state_synchronize_rcu
83
84
85 /* Compat identifiers for prior undocumented multiflavor usage */
86 #ifndef URCU_NO_COMPAT_IDENTIFIERS
87
88 #define rcu_dereference_mb urcu_mb_dereference
89 #define rcu_cmpxchg_pointer_mb urcu_mb_cmpxchg_pointer
90 #define rcu_xchg_pointer_mb urcu_mb_xchg_pointer
91 #define rcu_set_pointer_mb urcu_mb_set_pointer
92
93 #define rcu_mb_before_fork urcu_mb_before_fork
94 #define rcu_mb_after_fork_parent urcu_mb_after_fork_parent
95 #define rcu_mb_after_fork_child urcu_mb_after_fork_child
96
97 #define rcu_read_lock_mb urcu_mb_read_lock
98 #define _rcu_read_lock_mb _urcu_mb_read_lock
99 #define rcu_read_unlock_mb urcu_mb_read_unlock
100 #define _rcu_read_unlock_mb _urcu_mb_read_unlock
101 #define rcu_read_ongoing_mb urcu_mb_read_ongoing
102 #define _rcu_read_ongoing_mb _urcu_mb_read_ongoing
103 #define rcu_register_thread_mb urcu_mb_register_thread
104 #define rcu_unregister_thread_mb urcu_mb_unregister_thread
105 #define rcu_init_mb urcu_mb_init
106 #define rcu_exit_mb urcu_mb_exit
107 #define synchronize_rcu_mb urcu_mb_synchronize_rcu
108 #define rcu_reader_mb urcu_mb_reader
109 #define rcu_gp_mb urcu_mb_gp
110
111 #define get_cpu_call_rcu_data_mb urcu_mb_get_cpu_call_rcu_data
112 #define get_call_rcu_thread_mb urcu_mb_get_call_rcu_thread
113 #define create_call_rcu_data_mb urcu_mb_create_call_rcu_data
114 #define set_cpu_call_rcu_data_mb urcu_mb_set_cpu_call_rcu_data
115 #define get_default_call_rcu_data_mb urcu_mb_get_default_call_rcu_data
116 #define get_call_rcu_data_mb urcu_mb_get_call_rcu_data
117 #define get_thread_call_rcu_data_mb urcu_mb_get_thread_call_rcu_data
118 #define set_thread_call_rcu_data_mb urcu_mb_set_thread_call_rcu_data
119 #define create_all_cpu_call_rcu_data_mb urcu_mb_create_all_cpu_call_rcu_data
120 #define free_all_cpu_call_rcu_data_mb urcu_mb_free_all_cpu_call_rcu_data
121 #define call_rcu_mb urcu_mb_call_rcu
122 #define call_rcu_data_free_mb urcu_mb_call_rcu_data_free
123 #define call_rcu_before_fork_mb urcu_mb_call_rcu_before_fork
124 #define call_rcu_after_fork_parent_mb urcu_mb_call_rcu_after_fork_parent
125 #define call_rcu_after_fork_child_mb urcu_mb_call_rcu_after_fork_child
126 #define rcu_barrier_mb urcu_mb_barrier
127
128 #define defer_rcu_mb urcu_mb_defer_rcu
129 #define rcu_defer_register_thread_mb urcu_mb_defer_register_thread
130 #define rcu_defer_unregister_thread_mb urcu_mb_defer_unregister_thread
131 #define rcu_defer_barrier_mb urcu_mb_defer_barrier
132 #define rcu_defer_barrier_thread_mb urcu_mb_defer_barrier_thread
133 #define rcu_defer_exit_mb urcu_mb_defer_exit
134
135 #define rcu_flavor_mb urcu_mb_flavor
136
137 #define urcu_register_rculfhash_atfork_mb \
138 urcu_mb_register_rculfhash_atfork
139 #define urcu_unregister_rculfhash_atfork_mb \
140 urcu_mb_unregister_rculfhash_atfork
141
142 #endif /* URCU_NO_COMPAT_IDENTIFIERS */
This page took 0.037914 seconds and 4 git commands to generate.