idr_alloc_locked
retval = idr_alloc_locked(idr, ptr, start, end);
retval = idr_alloc_locked(idr, ptr, max(start, idr->next_cyclic_id), end);