zephyr::raw

Function sys_heap_free

source
pub unsafe extern "C" fn sys_heap_free(
    heap: *mut sys_heap,
    mem: *mut c_void,
)
Expand description

@brief Free memory into a sys_heap

De-allocates a pointer to memory previously returned from sys_heap_alloc such that it can be used for other purposes. The caller must not use the memory region after entry to this function.

@note The sys_heap implementation is not internally synchronized. No two sys_heap functions should operate on the same heap at the same time. All locking must be provided by the user.

@param heap Heap to which to return the memory @param mem A pointer previously returned from sys_heap_alloc()