idr_get_next
void *idr_get_next(struct idr *, int *);
for (id = 0; ((entry) = idr_get_next(idp, &(id))) != NULL; id++)