3 releases

✓ Uses Rust 2018 edition

0.0.3 May 14, 2019
0.0.2 May 13, 2019
0.0.1 May 13, 2019

MIT license

78 lines

Buddies: A low-level buddy allocator

Buddies provides a low-level and unsafe buddy allocator to work with - however, making it safe is quite simple. All that needs to be done is to store extra information that does the following things:

  1. Ensures that all allocations have shorter lifetimes than the allocator
  2. Ensures that multiple mutable allocations are possible simultaneously
  3. Ensures that allocations are dropped correctly. The primitives are provided to do this - see Buddies::allocate and Buddies::free.

It does not require std, and will remain like this (so that bare-metal kernels and applications can use it easily).


Buddies: A buddies allocator.

This can be used to allocate blocks of different sizes from a single fixed-width block, and is useful in bare-metal physical memory allocation (which is how Linux does things).