diff options
| author | Vinayak Menon <vinmenon@codeaurora.org> | 2015-07-20 10:53:19 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:15:18 -0700 |
| commit | 6fe144923f51af53706f5f9b12944b241b56148d (patch) | |
| tree | 29a11675a18dc3df9595f8141a9dd8dc026afd33 /include/linux/radix-tree.h | |
| parent | 347c419ead855663663b37da444ce0c7ad3de1aa (diff) | |
radix-tree: add radix_tree_gang_lookup_index
Add radix_tree_gang_lookup_index to get the radix tree
indices along with the pointers. This will be helpful,
for e.g. if a radix_tree_delete has to be performed
depending on one of the result values.
Change-Id: Iab83d027968462aa30da5341fa3f60134b6c1137
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'include/linux/radix-tree.h')
| -rw-r--r-- | include/linux/radix-tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h index 5d5174b59802..22fb153c2b3d 100644 --- a/include/linux/radix-tree.h +++ b/include/linux/radix-tree.h @@ -274,6 +274,10 @@ void *radix_tree_delete(struct radix_tree_root *, unsigned long); unsigned int radix_tree_gang_lookup(struct radix_tree_root *root, void **results, unsigned long first_index, unsigned int max_items); +unsigned int +radix_tree_gang_lookup_index(struct radix_tree_root *root, void **results, + unsigned long *indices, unsigned long first_index, + unsigned int max_items); unsigned int radix_tree_gang_lookup_slot(struct radix_tree_root *root, void ***results, unsigned long *indices, unsigned long first_index, unsigned int max_items); |
