range-alloc-arceos
range-alloc-arceos is a generic range allocator tailored for the ArceOS ecosystem.
It is a fork of the excellent gfx-rs/range-alloc, adapted for use in kernel development and embedded scenarios (no_std). It allows you to dynamically allocate and free ranges from a predefined memory block or address space.
Features
no_stdSupport: Designed for bare-metal and kernel environments.- Generic: Works with any type that satisfies the
Rangerequirements (e.g., memory addresses, port numbers). - **`markdown
range-alloc-arceos
range-alloc-arceos is a generic range allocator tailored for the ArceOS ecosystem.
It is a fork of the excellent gfx-rs/range-alloc, adapted for use in kernel development and embedded scenarios (no_std). It allows you to dynamically allocate and free ranges from a predefined memory block or address space.
Features
no_stdSupport: Designed for bare-metal and kernel environments.- Generic: Works with any type that satisfies the
Rangerequirements (e.g., memory addresses, port numbers). - Efficient: Merges adjacent free ranges to minimize fragmentation.
Usage
Add this to your Cargo.toml:
[]
= "0.1.0-alpha.1"
Example
use RangeAllocator;
License
This project is licensed under either of
-
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0 )
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT )
at your option.