Public headers: use SPDX identifiers
[urcu.git] / include / urcu / map / urcu-mb.h
index fa77a1af7c03a86f1edc8ed5b934a46a501a83e0..1f1147fe5f8c6032ab58914e6d70fd9db7018430 100644 (file)
@@ -1,31 +1,17 @@
+// SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation.
+// SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
 /*
- * urcu/map/urcu-mb.h
- *
  * Userspace RCU header -- name mapping to allow multiple flavors to be
  * used in the same executable.
  *
- * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
- *
  * LGPL-compatible code should include this header with :
  *
  * #define _LGPL_SOURCE
  * #include <urcu.h>
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
  * IBM's contributions to this file may be relicensed under LGPLv2 or later.
  */
 
 #define urcu_unregister_rculfhash_atfork       \
                urcu_mb_unregister_rculfhash_atfork
 
+#define start_poll_synchronize_rcu     urcu_mb_start_poll_synchronize_rcu
+#define poll_state_synchronize_rcu     urcu_mb_poll_state_synchronize_rcu
+
+
+/* Compat identifiers for prior undocumented multiflavor usage */
+#ifndef URCU_NO_COMPAT_IDENTIFIERS
+
+#define rcu_dereference_mb             urcu_mb_dereference
+#define rcu_cmpxchg_pointer_mb         urcu_mb_cmpxchg_pointer
+#define rcu_xchg_pointer_mb            urcu_mb_xchg_pointer
+#define rcu_set_pointer_mb             urcu_mb_set_pointer
+
+#define rcu_mb_before_fork             urcu_mb_before_fork
+#define rcu_mb_after_fork_parent       urcu_mb_after_fork_parent
+#define rcu_mb_after_fork_child                urcu_mb_after_fork_child
+
+#define rcu_read_lock_mb               urcu_mb_read_lock
+#define _rcu_read_lock_mb              _urcu_mb_read_lock
+#define rcu_read_unlock_mb             urcu_mb_read_unlock
+#define _rcu_read_unlock_mb            _urcu_mb_read_unlock
+#define rcu_read_ongoing_mb            urcu_mb_read_ongoing
+#define _rcu_read_ongoing_mb           _urcu_mb_read_ongoing
+#define rcu_register_thread_mb         urcu_mb_register_thread
+#define rcu_unregister_thread_mb       urcu_mb_unregister_thread
+#define rcu_init_mb                    urcu_mb_init
+#define rcu_exit_mb                    urcu_mb_exit
+#define synchronize_rcu_mb             urcu_mb_synchronize_rcu
+#define rcu_reader_mb                  urcu_mb_reader
+#define rcu_gp_mb                      urcu_mb_gp
+
+#define get_cpu_call_rcu_data_mb       urcu_mb_get_cpu_call_rcu_data
+#define get_call_rcu_thread_mb         urcu_mb_get_call_rcu_thread
+#define create_call_rcu_data_mb                urcu_mb_create_call_rcu_data
+#define set_cpu_call_rcu_data_mb       urcu_mb_set_cpu_call_rcu_data
+#define get_default_call_rcu_data_mb   urcu_mb_get_default_call_rcu_data
+#define get_call_rcu_data_mb           urcu_mb_get_call_rcu_data
+#define get_thread_call_rcu_data_mb    urcu_mb_get_thread_call_rcu_data
+#define set_thread_call_rcu_data_mb    urcu_mb_set_thread_call_rcu_data
+#define create_all_cpu_call_rcu_data_mb        urcu_mb_create_all_cpu_call_rcu_data
+#define free_all_cpu_call_rcu_data_mb  urcu_mb_free_all_cpu_call_rcu_data
+#define call_rcu_mb                    urcu_mb_call_rcu
+#define call_rcu_data_free_mb          urcu_mb_call_rcu_data_free
+#define call_rcu_before_fork_mb                urcu_mb_call_rcu_before_fork
+#define call_rcu_after_fork_parent_mb  urcu_mb_call_rcu_after_fork_parent
+#define call_rcu_after_fork_child_mb   urcu_mb_call_rcu_after_fork_child
+#define rcu_barrier_mb                 urcu_mb_barrier
+
+#define defer_rcu_mb                   urcu_mb_defer_rcu
+#define rcu_defer_register_thread_mb   urcu_mb_defer_register_thread
+#define rcu_defer_unregister_thread_mb urcu_mb_defer_unregister_thread
+#define rcu_defer_barrier_mb           urcu_mb_defer_barrier
+#define rcu_defer_barrier_thread_mb    urcu_mb_defer_barrier_thread
+#define rcu_defer_exit_mb              urcu_mb_defer_exit
+
+#define rcu_flavor_mb                  urcu_mb_flavor
+
+#define urcu_register_rculfhash_atfork_mb      \
+               urcu_mb_register_rculfhash_atfork
+#define urcu_unregister_rculfhash_atfork_mb    \
+               urcu_mb_unregister_rculfhash_atfork
 
-/* Aliases for ABI(6) compat */
-
-#define alias_rcu_flavor               rcu_flavor_mb
-
-/* src/urcu.c */
-#define alias_rcu_read_lock            rcu_read_lock_mb
-#define alias_rcu_read_unlock          rcu_read_unlock_mb
-#define alias_rcu_read_ongoing         rcu_read_ongoing_mb
-#define alias_rcu_register_thread      rcu_register_thread_mb
-#define alias_rcu_unregister_thread    rcu_unregister_thread_mb
-#define alias_rcu_init                 rcu_init_mb
-#define alias_synchronize_rcu          synchronize_rcu_mb
-#define alias_rcu_reader               rcu_reader_mb
-#define alias_rcu_gp                   rcu_gp_mb
-
-/* src/urcu-call-rcu-impl.h */
-#define alias_get_cpu_call_rcu_data    get_cpu_call_rcu_data_mb
-#define alias_get_call_rcu_thread      get_call_rcu_thread_mb
-#define alias_create_call_rcu_data     create_call_rcu_data_mb
-#define alias_set_cpu_call_rcu_data    set_cpu_call_rcu_data_mb
-#define alias_get_default_call_rcu_data        get_default_call_rcu_data_mb
-#define alias_get_call_rcu_data                get_call_rcu_data_mb
-#define alias_get_thread_call_rcu_data get_thread_call_rcu_data_mb
-#define alias_set_thread_call_rcu_data set_thread_call_rcu_data_mb
-#define alias_create_all_cpu_call_rcu_data     \
-               create_all_cpu_call_rcu_data_mb
-#define alias_free_all_cpu_call_rcu_data       \
-               free_all_cpu_call_rcu_data_mb
-#define alias_call_rcu                 call_rcu_mb
-#define alias_call_rcu_data_free       call_rcu_data_free_mb
-#define alias_call_rcu_before_fork     call_rcu_before_fork_mb
-#define alias_call_rcu_after_fork_parent       \
-               call_rcu_after_fork_parent_mb
-#define alias_call_rcu_after_fork_child        call_rcu_after_fork_child_mb
-#define alias_rcu_barrier              rcu_barrier_mb
-
-#define alias_urcu_register_rculfhash_atfork   \
-               urcu_register_rculfhash_atfork_mb
-#define alias_urcu_unregister_rculfhash_atfork \
-               urcu_unregister_rculfhash_atfork_mb
-
-/* src/urcu-defer-impl.h */
-#define alias_defer_rcu                        defer_rcu_mb
-#define alias_rcu_defer_register_thread        rcu_defer_register_thread_mb
-#define alias_rcu_defer_unregister_thread      \
-               rcu_defer_unregister_thread_mb
-#define alias_rcu_defer_barrier                rcu_defer_barrier_mb
-#define alias_rcu_defer_barrier_thread rcu_defer_barrier_thread_mb
-#define alias_rcu_defer_exit           rcu_defer_exit_mb
+#endif /* URCU_NO_COMPAT_IDENTIFIERS */
This page took 0.024497 seconds and 4 git commands to generate.