pub unsafe extern "C" fn k_malloc(size: usize) -> *mut c_void
Expand description
@brief Allocate memory from the heap.
This routine provides traditional malloc() semantics. Memory is allocated from the heap memory pool. Allocated memory is aligned on a multiple of pointer sizes.
@param size Amount of memory requested (in bytes).
@return Address of the allocated memory if successful; otherwise NULL.