* 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.
* 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.
* 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.