+ * Return NULL on error.
+ * Note: the RCU flavor must be already included before the hash table header.
+ */
+static inline
+struct cds_lfht *cds_lfht_new(cds_lfht_hash_fct hash_fct,
+ cds_lfht_compare_fct compare_fct,
+ unsigned long hash_seed,
+ unsigned long init_size,
+ int flags)
+{
+ return _cds_lfht_new(hash_fct, compare_fct, hash_seed,
+ init_size, flags,
+ call_rcu, synchronize_rcu, rcu_read_lock,
+ rcu_read_unlock, rcu_thread_offline,
+ rcu_thread_online);
+}
+
+/*
+ * cds_lfht_destroy - destroy a hash table.
+ *
+ * Return 0 on success, negative error value on error.
+ */
+int cds_lfht_destroy(struct cds_lfht *ht);
+
+/*
+ * cds_lfht_count_nodes - count the number of nodes in the hash table.
+ *
+ * Call with rcu_read_lock held.
+ */
+void cds_lfht_count_nodes(struct cds_lfht *ht,
+ unsigned long *count,
+ unsigned long *removed);
+
+/*
+ * cds_lfht_lookup - lookup a node by key.
+ *
+ * Return NULL if not found.
+ * Call with rcu_read_lock held.
+ */
+struct cds_lfht_node *cds_lfht_lookup(struct cds_lfht *ht, void *key, size_t key_len);
+
+/*
+ * cds_lfht_next - get the next item with same key (after a lookup).
+ *
+ * Return NULL if no following node exists with same key.
+ * RCU read-side lock must be held across cds_lfht_lookup and cds_lfht_next calls, and also
+ * between cds_lfht_next calls using the node returned by a previous cds_lfht_next.
+ * Call with rcu_read_lock held.