4 releases

0.3.3 Feb 18, 2026
0.3.2 Jan 26, 2026
0.3.1 May 10, 2024
0.2.1 Apr 23, 2019
0.1.4 Apr 10, 2019

#153 in Memory management

Download history 1756/week @ 2025-12-28 897/week @ 2026-01-04 738/week @ 2026-01-11 526/week @ 2026-01-18 872/week @ 2026-01-25 1677/week @ 2026-02-01 1963/week @ 2026-02-08 1000/week @ 2026-02-15 1116/week @ 2026-02-22 1857/week @ 2026-03-01 1816/week @ 2026-03-08 1203/week @ 2026-03-15 646/week @ 2026-03-22 1066/week @ 2026-03-29 941/week @ 2026-04-05 600/week @ 2026-04-12

3,301 downloads per month

MIT/Apache

40KB
652 lines

free-list

Crates.io docs.rs CI

This crate provides the FreeList type to allocate pages/frames of virtual/physical memory:

use free_list::{FreeList, PageLayout};

let mut free_list = FreeList::<16>::new();

unsafe {
    free_list.deallocate((0x1000..0x5000).try_into().unwrap()).unwrap();
}
assert_eq!(free_list.free_space(), 0x4000);

let layout = PageLayout::from_size(0x4000).unwrap();
assert_eq!(free_list.allocate(layout).unwrap(), (0x1000..0x5000).try_into().unwrap());

For API documentation, see the docs.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~215KB