X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Frculfhash.h;h=004c20817b8585e1cecc21f37068b8725b8a5d43;hb=9be0828e85625ab403b83962622a7241665c49ea;hp=8baf31d76bdfa1e40b4184b437a5421756764bfb;hpb=aee1715b914e5f4ba5003079d5d954ef2209f04e;p=urcu.git diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 8baf31d..004c208 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -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.