X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Furcu%2Fflavor.h;h=ce2a013a9aa14d1bff0874850f1d8d1699452ef9;hb=d3d3857f678627e7bbfb5a8d6f3bc15cd2a694d9;hp=1a920896fc9474c0ef7babe1eafa7eec5babca90;hpb=a0ec6d9b6b67e37fc81c98e04008907bc500cde8;p=urcu.git diff --git a/include/urcu/flavor.h b/include/urcu/flavor.h index 1a92089..ce2a013 100644 --- a/include/urcu/flavor.h +++ b/include/urcu/flavor.h @@ -1,28 +1,16 @@ +// SPDX-FileCopyrightText: 2011 Lai Jiangshan +// +// SPDX-License-Identifier: LGPL-2.1-or-later + #ifndef _URCU_FLAVOR_H #define _URCU_FLAVOR_H /* - * urcu-flavor.h - * * Userspace RCU header - rcu flavor declarations - * - * Copyright (c) 2011 Lai Jiangshan - * - * 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 */ +#include + #ifdef __cplusplus extern "C" { #endif @@ -58,6 +46,9 @@ struct rcu_flavor_struct { void (*register_rculfhash_atfork)(struct urcu_atfork *atfork); void (*unregister_rculfhash_atfork)(struct urcu_atfork *atfork); + + struct urcu_gp_poll_state (*update_start_poll_synchronize_rcu)(void); + bool (*update_poll_state_synchronize_rcu)(struct urcu_gp_poll_state state); }; #define DEFINE_RCU_FLAVOR(x) \ @@ -76,6 +67,8 @@ const struct rcu_flavor_struct x = { \ .barrier = rcu_barrier, \ .register_rculfhash_atfork = urcu_register_rculfhash_atfork, \ .unregister_rculfhash_atfork = urcu_unregister_rculfhash_atfork,\ + .update_start_poll_synchronize_rcu = start_poll_synchronize_rcu,\ + .update_poll_state_synchronize_rcu = poll_state_synchronize_rcu,\ } extern const struct rcu_flavor_struct rcu_flavor;