rculfhash: update comments in implementation
[urcu.git] / urcu / rculfhash.h
index 8baf31d76bdfa1e40b4184b437a5421756764bfb..004c20817b8585e1cecc21f37068b8725b8a5d43 100644 (file)
@@ -214,7 +214,8 @@ void cds_lfht_lookup(struct cds_lfht *ht, unsigned long hash,
  * @key: the current node key.
  * @iter: Node, if found (output). *iter->node set to NULL if not found.
  *
- * Uses an iterator initialized by a lookup.
+ * Uses an iterator initialized by a lookup. Important: the iterator
+ * _needs_ to be initialized before calling cds_lfht_next_duplicate.
  * Sets *iter-node to the following node with same key.
  * Sets *iter->node to NULL if no following node exists with same key.
  * RCU read-side lock must be held across cds_lfht_lookup and
@@ -322,7 +323,7 @@ struct cds_lfht_node *cds_lfht_add_replace(struct cds_lfht *ht,
                struct cds_lfht_node *node);
 
 /*
- * cds_lfht_replace - replace a node pointer to by iter within hash table.
+ * cds_lfht_replace - replace a node pointed to by iter within hash table.
  * @ht: the hash table.
  * @old_iter: the iterator position of the node to replace.
  * @hash: the node's hash.
This page took 0.021953 seconds and 4 git commands to generate.