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`.
This is based on drm-rust-next. Signed-off-by: Eliot Courtney <[email protected]> --- Eliot Courtney (4): rust: bitmap: use function-level cfg on kunit test rust: bitmap: add contiguous area operations rust: id_pool: add contiguous area allocation gpu: nova-core: add ChannelIdPool drivers/gpu/nova-core/gpu.rs | 2 + drivers/gpu/nova-core/gpu/channel.rs | 134 +++++++++++++++++++ rust/helpers/bitmap.c | 22 ++++ rust/kernel/bitmap.rs | 244 +++++++++++++++++++++++++++++++++-- rust/kernel/id_pool.rs | 68 ++++++++++ 5 files changed, 456 insertions(+), 14 deletions(-) --- base-commit: a73a398a68ca9b9e5116a617562471f16b8310c4 change-id: 20260608-chid-18fa943c6d6c Best regards, -- Eliot Courtney <[email protected]>
