diff options
Diffstat (limited to 'include/linux/idr.h')
-rw-r--r-- | include/linux/idr.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/idr.h b/include/linux/idr.h index ca3b7e462576..d37c8d808b0f 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h | |||
@@ -8,6 +8,10 @@ | |||
8 | * Small id to pointer translation service avoiding fixed sized | 8 | * Small id to pointer translation service avoiding fixed sized |
9 | * tables. | 9 | * tables. |
10 | */ | 10 | */ |
11 | |||
12 | #ifndef __IDR_H__ | ||
13 | #define __IDR_H__ | ||
14 | |||
11 | #include <linux/types.h> | 15 | #include <linux/types.h> |
12 | #include <linux/bitops.h> | 16 | #include <linux/bitops.h> |
13 | 17 | ||
@@ -71,8 +75,11 @@ struct idr { | |||
71 | */ | 75 | */ |
72 | 76 | ||
73 | void *idr_find(struct idr *idp, int id); | 77 | void *idr_find(struct idr *idp, int id); |
74 | int idr_pre_get(struct idr *idp, unsigned gfp_mask); | 78 | int idr_pre_get(struct idr *idp, gfp_t gfp_mask); |
75 | int idr_get_new(struct idr *idp, void *ptr, int *id); | 79 | int idr_get_new(struct idr *idp, void *ptr, int *id); |
76 | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id); | 80 | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id); |
77 | void idr_remove(struct idr *idp, int id); | 81 | void idr_remove(struct idr *idp, int id); |
82 | void idr_destroy(struct idr *idp); | ||
78 | void idr_init(struct idr *idp); | 83 | void idr_init(struct idr *idp); |
84 | |||
85 | #endif /* __IDR_H__ */ | ||