Function frame_allocator::allocate_frames_by_bytes
source · pub fn allocate_frames_by_bytes(
num_bytes: usize
) -> Option<AllocatedFrames<Page4K>>
Expand description
Allocates frames with no constraints on the starting physical address, with a size given by the number of bytes.
This function still allocates whole frames by rounding up the number of bytes.
See allocate_frames_deferred()
for more details.