X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Frcuja.h;fp=urcu%2Frcuja.h;h=eb384941d6a7cde6d38c530a24702a505873ec9e;hb=36305a3db8c572e25a6335c9384a5112bdfd8148;hp=5dd7baf5b25d3a92913624201042b03af714a1de;hpb=5277c70e6dfc3bea41cf492e4fb031ece08c39e9;p=userspace-rcu.git diff --git a/urcu/rcuja.h b/urcu/rcuja.h index 5dd7baf..eb38494 100644 --- a/urcu/rcuja.h +++ b/urcu/rcuja.h @@ -74,6 +74,7 @@ struct cds_ja_node *cds_ja_lookup(struct cds_ja *ja, uint64_t key); * cds_ja_lookup_below_equal - look up first node with key <= @key. * @ja: the Judy array. * @key: key to look up. + * @result_key: key found. * * Returns the first node of a duplicate chain if a node is present in * the tree which has a key below or equal to @key, else returns NULL. @@ -81,12 +82,13 @@ struct cds_ja_node *cds_ja_lookup(struct cds_ja *ja, uint64_t key); * use of its return value. */ struct cds_ja_node *cds_ja_lookup_below_equal(struct cds_ja *ja, - uint64_t key); + uint64_t key, uint64_t *result_key); /* * cds_ja_lookup_above_equal - look up first node with key >= @key. * @ja: the Judy array. * @key: key to look up. + * @result_key: key found. * * Returns the first node of a duplicate chain if a node is present in * the tree which has a key above or equal to @key, else returns NULL. @@ -94,7 +96,7 @@ struct cds_ja_node *cds_ja_lookup_below_equal(struct cds_ja *ja, * use of its return value. */ struct cds_ja_node *cds_ja_lookup_above_equal(struct cds_ja *ja, - uint64_t key); + uint64_t key, uint64_t *result_key); /* * cds_ja_add - Add @node at @key, allowing duplicates.