pub unsafe extern "C" fn sys_multi_mem_blocks_alloc(
group: *mut sys_multi_mem_blocks,
cfg: *mut c_void,
count: usize,
out_blocks: *mut *mut c_void,
blk_size: *mut usize,
) -> i32Expand description
@brief Allocate memory from multi memory blocks allocator group
Just as for sys_mem_blocks_alloc(), allocates multiple blocks of memory. Takes an opaque configuration pointer passed to the choice function, which is used by integration code to choose an allocator.
@param[in] group Multi memory blocks allocator structure. @param[in] cfg Opaque configuration parameter, as for sys_multi_mem_blocks_choice_fn_t @param[in] count Number of blocks to allocate @param[out] out_blocks Output array to be populated by pointers to the memory blocks. It must have at least @p count elements. @param[out] blk_size If not NULL, output the block size of the chosen allocator.
@retval 0 Successful @retval -EINVAL Invalid argument supplied, or no allocator chosen. @retval -ENOMEM Not enough blocks for allocation.