unsigned long hash;
unsigned long reverse_hash;
unsigned int dummy;
- void *value;
struct rcu_head head;
};
static inline
void ht_node_init(struct rcu_ht_node *node, void *key,
- size_t key_len, void *value)
+ size_t key_len)
{
node->key = key;
node->key_len = key_len;
- node->value = value;
node->dummy = 0;
}
/* Call with rcu_read_lock held. */
void ht_add(struct rcu_ht *ht, struct rcu_ht_node *node);
+/* Call with rcu_read_lock held. */
+int ht_add_unique(struct rcu_ht *ht, struct rcu_ht_node *node);
+
/* Call with rcu_read_lock held. */
int ht_remove(struct rcu_ht *ht, struct rcu_ht_node *node);