ida: simplified functions for id allocation
[linux-2.6-block.git] / include / linux / idr.h
index 13a801f3d028225533f2ce701349b2b0657ca734..255491cf522e1d08ea6d0066fc7872f32817c82c 100644 (file)
@@ -146,6 +146,10 @@ void ida_remove(struct ida *ida, int id);
 void ida_destroy(struct ida *ida);
 void ida_init(struct ida *ida);
 
+int ida_simple_get(struct ida *ida, unsigned int start, unsigned int end,
+                  gfp_t gfp_mask);
+void ida_simple_remove(struct ida *ida, unsigned int id);
+
 void __init idr_init_cache(void);
 
 #endif /* __IDR_H__ */