pub fn allocate_kernel_virtual(
size: usize,
token: &IrqDisabledToken,
) -> Result<*mut u8, VmallocError>Expand description
Allocate virtually contiguous kernel memory backed by fragmented physical pages.
This is the explicit large-allocation API for kernel callers that require a large virtually contiguous range but not physical contiguity.
Returned pointers are aligned to a 4 KiB page boundary. For alignment
stricter than one page, do not route through [GlobalAlloc] / large
[Layout] on this heap : use a dedicated aligned mapping or slab path.