libkernel: memory: phys: expose MAX_ORDER const.

Expose the physical memory allocator MAX_ORDER const.
This commit is contained in:
Matthew Leach
2026-05-06 11:52:52 +01:00
committed by Ashwin Naren
parent d807fecac2
commit d0e9cccd37

View File

@@ -28,9 +28,9 @@ use super::{
smalloc::Smalloc,
};
// The maximum order for the buddy system. This corresponds to blocks of size
// 2^MAX_ORDER pages.
const MAX_ORDER: usize = 10;
/// The maximum order for the buddy system. This corresponds to blocks of size
/// 2^MAX_ORDER pages.
pub const MAX_ORDER: usize = 10;
pub(super) struct FrameAllocatorInner {
frame_list: FrameList,