From 28d5c1b5f2bdbb630c4aafa35c9b6e0d58542c73 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 19 Nov 2013 09:53:54 -0500 Subject: [PATCH] rculfhash: document max_nr_buckets = 0 Signed-off-by: Mathieu Desnoyers --- urcu/rculfhash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index afd0c3e..7a411ad 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -133,7 +133,8 @@ struct cds_lfht *_cds_lfht_new(unsigned long init_size, * @min_nr_alloc_buckets: the minimum number of allocated buckets. * (must be power of two) * @max_nr_buckets: the maximum number of hash table buckets allowed. - * (must be power of two) + * (must be power of two, 0 is accepted, means + * "infinite") * @flags: hash table creation flags (can be combined with bitwise or: '|'). * 0: no flags. * CDS_LFHT_AUTO_RESIZE: automatically resize hash table. -- 2.34.1