Function page_allocator::allocate_pages_by_bytes_deferred
source · pub fn allocate_pages_by_bytes_deferred(
request: AllocationRequest<'_>,
num_bytes: usize
) -> Result<(AllocatedPages<Page4K>, DeferredAllocAction<'static>), &'static str>Expand description
Similar to allocated_pages_deferred(),
but accepts a size value for the allocated pages in number of bytes instead of number of pages.
This function still allocates whole pages by rounding up the number of bytes.