X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Frcuja.h;fp=urcu%2Frcuja.h;h=5dd7baf5b25d3a92913624201042b03af714a1de;hb=b023ba9fb95fbcfbedd3e499556959ad6706ce79;hp=55793d573ea2ae2491912be312c182ffb949b4ea;hpb=125a6dae5e23500f9359023dac7be741c6fc47b1;p=urcu.git diff --git a/urcu/rcuja.h b/urcu/rcuja.h index 55793d5..5dd7baf 100644 --- a/urcu/rcuja.h +++ b/urcu/rcuja.h @@ -71,16 +71,29 @@ void cds_ja_node_init(struct cds_ja_node *node) struct cds_ja_node *cds_ja_lookup(struct cds_ja *ja, uint64_t key); /* - * cds_ja_lookup_lower_equal - look up first node with key <= @key. + * cds_ja_lookup_below_equal - look up first node with key <= @key. * @ja: the Judy array. * @key: key to look up. * * Returns the first node of a duplicate chain if a node is present in - * the tree which has a key lower or equal to @key, else returns NULL. + * the tree which has a key below or equal to @key, else returns NULL. * A RCU read-side lock should be held across call to this function and * use of its return value. */ -struct cds_ja_node *cds_ja_lookup_lower_equal(struct cds_ja *ja, +struct cds_ja_node *cds_ja_lookup_below_equal(struct cds_ja *ja, + uint64_t key); + +/* + * cds_ja_lookup_above_equal - look up first node with key >= @key. + * @ja: the Judy array. + * @key: key to look up. + * + * 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. + * A RCU read-side lock should be held across call to this function and + * use of its return value. + */ +struct cds_ja_node *cds_ja_lookup_above_equal(struct cds_ja *ja, uint64_t key); /*