diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-09-01 19:59:44 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-09-01 19:59:44 -0500 |
commit | 386df39c9866a4d945de46ef0dcab2363c674e0e (patch) | |
tree | c0572ce6a2c81c93546210f599dff553783c5760 /crates/alloc_buddy/src/lib.rs | |
parent | 6b98b6afea6e790abe738a67aa28bab54c91afe0 (diff) |
Move almost all the kernel into crates/.
Diffstat (limited to 'crates/alloc_buddy/src/lib.rs')
-rw-r--r-- | crates/alloc_buddy/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/alloc_buddy/src/lib.rs b/crates/alloc_buddy/src/lib.rs index fa14848..c890e79 100644 --- a/crates/alloc_buddy/src/lib.rs +++ b/crates/alloc_buddy/src/lib.rs @@ -1,10 +1,6 @@ //! A buddy allocator, used to allocate pages. #![no_std] -mod bitset; -mod free_list; -mod tree; - use crate::{ bitset::{Bitset, SubregionStatus}, free_list::{FreeList, FreeListNode}, @@ -16,6 +12,10 @@ use core::{fmt, mem, ptr::NonNull}; use vernos_alloc_physmem_free_list::FreeListAllocator; use vernos_utils::debug; +mod bitset; +mod free_list; +mod tree; + /// A buddy allocator. pub struct BuddyAllocator< 'allocator, |