projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: rename _next into _next_duplicate
[urcu.git]
/
urcu
/
rculfhash.h
diff --git
a/urcu/rculfhash.h
b/urcu/rculfhash.h
index 860ef3d1c2d05e3516ec4a8849c9d47b39f1371f..5e149ef629de692fbc5b1f4aeed371269d18b2b4 100644
(file)
--- a/
urcu/rculfhash.h
+++ b/
urcu/rculfhash.h
@@
-42,6
+42,11
@@
struct _cds_lfht_node {
unsigned long reverse_hash;
} __attribute__((aligned(4)));
unsigned long reverse_hash;
} __attribute__((aligned(4)));
+/*
+ * struct cds_lfht_node can be embedded into a structure (as a field).
+ * caa_container_of() can be used to get the structure from the struct
+ * cds_lfht_node after a lookup.
+ */
struct cds_lfht_node {
/* cache-hot for iteration */
struct _cds_lfht_node p; /* needs to be first field */
struct cds_lfht_node {
/* cache-hot for iteration */
struct _cds_lfht_node p; /* needs to be first field */
@@
-180,7
+185,7
@@
void cds_lfht_lookup(struct cds_lfht *ht, void *key, size_t key_len,
struct cds_lfht_iter *iter);
/*
struct cds_lfht_iter *iter);
/*
- * cds_lfht_next - get the next item with same key (after a lookup).
+ * cds_lfht_next
_duplicate
- get the next item with same key (after a lookup).
*
* Uses an iterator initialized by a lookup.
* Sets *iter-node to the following node with same key.
*
* Uses an iterator initialized by a lookup.
* Sets *iter-node to the following node with same key.
@@
-190,7
+195,7
@@
void cds_lfht_lookup(struct cds_lfht *ht, void *key, size_t key_len,
* node returned by a previous cds_lfht_next.
* Call with rcu_read_lock held.
*/
* node returned by a previous cds_lfht_next.
* Call with rcu_read_lock held.
*/
-void cds_lfht_next(struct cds_lfht *ht, struct cds_lfht_iter *iter);
+void cds_lfht_next
_duplicate
(struct cds_lfht *ht, struct cds_lfht_iter *iter);
/*
* cds_lfht_add - add a node to the hash table.
/*
* cds_lfht_add - add a node to the hash table.
This page took
0.02284 seconds
and
4
git commands to generate.