From 7f61a77fffa376ff47a2a8fb56e16d8e20787139 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 12 Jul 2011 11:59:00 -0400 Subject: [PATCH] rculfhash: document node alignment Signed-off-by: Mathieu Desnoyers --- urcu/rculfhash.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index b98b493..40fe4df 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -8,6 +8,11 @@ extern "C" { #endif +/* + * struct rcu_ht_node and struct _rcu_ht_node should be aligned on + * 4-bytes boundaries because the two lower bits are used as flags. + */ + struct _rcu_ht_node { struct rcu_ht_node *next; /* ptr | DUMMY_FLAG | REMOVED_FLAG */ unsigned long reverse_hash; -- 2.34.1