From: Ondřej Surý Date: Thu, 4 Jul 2024 08:29:10 +0000 (+0200) Subject: pointer.h: Fix the rcu_cmpxchg_pointer documentation X-Git-Tag: v0.14.1~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0bf1c4db7a5ba5a8d6bd417e287749ec1ee059a6;p=userspace-rcu.git pointer.h: Fix the rcu_cmpxchg_pointer documentation Fix the description of rcu_cmpxchg_pointer() function that had switched new and old pointers. Signed-off-by: Ondřej Surý Signed-off-by: Mathieu Desnoyers --- diff --git a/include/urcu/pointer.h b/include/urcu/pointer.h index a670272..56a7718 100644 --- a/include/urcu/pointer.h +++ b/include/urcu/pointer.h @@ -47,7 +47,7 @@ extern "C" { #define rcu_dereference _rcu_dereference /* - * type *rcu_cmpxchg_pointer(type **ptr, type *new, type *old) + * type *rcu_cmpxchg_pointer(type **ptr, type *old, type *new) * type *rcu_xchg_pointer(type **ptr, type *new) * void rcu_set_pointer(type **ptr, type *new) *