rculfhash: fix typo
[urcu.git] / urcu / rculfhash.h
index 96dc5a023aa6d4958b24bf316269463ed114b62a..7d06a869bc0f5b3b60d74feec7a4a93dff107684 100644 (file)
@@ -322,7 +322,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.
@@ -380,6 +380,20 @@ int cds_lfht_replace(struct cds_lfht *ht,
  */
 int cds_lfht_del(struct cds_lfht *ht, struct cds_lfht_node *node);
 
+/*
+ * cds_lfht_is_node_deleted - query if a node is removed from hash table.
+ *
+ * Return non-zero if the node is deleted from the hash table, 0
+ * otherwise.
+ * Node can be looked up with cds_lfht_lookup and cds_lfht_next,
+ * followed by use of cds_lfht_iter_get_node.
+ * RCU read-side lock must be held between lookup and call to this
+ * function.
+ * Call with rcu_read_lock held.
+ * Threads calling this API need to be registered RCU read-side threads.
+ */
+int cds_lfht_is_node_deleted(struct cds_lfht_node *node);
+
 /*
  * cds_lfht_resize - Force a hash table resize
  * @ht: the hash table.
This page took 0.022507 seconds and 4 git commands to generate.