Re: [PATCH 0/4] rust: Add support for reserving of ranges of IDs

From: Gary Guo

Date: Mon Jul 06 2026 - 07:59:59 EST


On Mon Jul 6, 2026 at 12:48 PM BST, Alice Ryhl wrote:
> On Fri, Jul 03, 2026 at 07:16:03PM +0900, Eliot Courtney wrote:
>> Add support for reserving of ranges of IDs, with a usage in nova-core
>> for channel IDs. This entails adding the helpers+users of the C bitmap
>> API for ranges of bits, then users of that in `IdPool`, and finally a
>> user of `IdPool` in nova-core, `ChannelIdPool`.
>
> If you need ranges of IDs, perhaps you want the maple tree instead?
>
> Alice

Any reason that the current ID pool is implemented directly on top of bitmap
rather than using IDA?

Best,
Gary