idr: Add new APIs to support unsigned long
authorChris Mi <chrism@mellanox.com>
Wed, 30 Aug 2017 06:31:57 +0000 (02:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Aug 2017 21:36:44 +0000 (14:36 -0700)
commit388f79fda74fd3d8700ed5d899573ec58c2e0253
treece66187430f7273449579dbbb1cc6b1fe9ea3a71
parentc2f8a6cee632cdd2e70de0089f4480ddd7998748
idr: Add new APIs to support unsigned long

The following new APIs are added:

int idr_alloc_ext(struct idr *idr, void *ptr, unsigned long *index,
                  unsigned long start, unsigned long end, gfp_t gfp);
void *idr_remove_ext(struct idr *idr, unsigned long id);
void *idr_find_ext(const struct idr *idr, unsigned long id);
void *idr_replace_ext(struct idr *idr, void *ptr, unsigned long id);
void *idr_get_next_ext(struct idr *idr, unsigned long *nextid);

Signed-off-by: Chris Mi <chrism@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/idr.h
include/linux/radix-tree.h
lib/idr.c
lib/radix-tree.c