From d0e9cccd370120b1d2ea087c3edfab6f4d8d6029 Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Wed, 6 May 2026 11:52:52 +0100 Subject: [PATCH] libkernel: memory: phys: expose MAX_ORDER const. Expose the physical memory allocator MAX_ORDER const. --- libkernel/src/memory/allocators/phys.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libkernel/src/memory/allocators/phys.rs b/libkernel/src/memory/allocators/phys.rs index 4da73e7..e4a7041 100644 --- a/libkernel/src/memory/allocators/phys.rs +++ b/libkernel/src/memory/allocators/phys.rs @@ -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,