Home | History | Annotate | Download | only in linux

Lines Matching defs:idr

1 /*	$NetBSD: idr.h,v 1.11 2023/07/11 10:42:36 riastradh Exp $	*/
43 struct idr {
66 void idr_init(struct idr *);
67 void idr_init_base(struct idr *, int);
68 void idr_destroy(struct idr *);
69 bool idr_is_empty(struct idr *);
70 void *idr_find(struct idr *, int);
71 void *idr_get_next(struct idr *, int *);
72 void *idr_replace(struct idr *, void *, int);
73 void *idr_remove(struct idr *, int);
75 int idr_alloc(struct idr *, void *, int, int, gfp_t);
77 int idr_for_each(struct idr *, int (*)(int, void *, void *), void *);
79 #define idr_for_each_entry(IDR, ENTRY, ID) \
80 for ((ID) = 0; ((ENTRY) = idr_get_next((IDR), &(ID))) != NULL; (ID)++)
83 struct idr ida_idr;