hermit::syscalls

Function sys_alloc

Source
#[no_mangle]
pub extern "C" fn sys_alloc(size: usize, align: usize) -> *mut u8
Expand description

Interface to allocate memory from system heap

§Errors

Returning a null pointer indicates that either memory is exhausted or size and align do not meet this allocator’s size or alignment constraints.