Function arceos_api::mem::ax_alloc
source · pub fn ax_alloc(layout: Layout) -> Option<NonNull<u8>>
Available on crate feature
alloc
only.Expand description
Allocate a continuous memory blocks with the given layout
in
the global allocator.
Returns None
if the allocation fails.