pub unsafe extern "C" fn sys_mem_blocks_get(
mem_block: *mut sys_mem_blocks,
in_block: *mut c_void,
count: usize,
) -> i32Expand description
@brief Force allocation of a specified blocks in a memory block object
Allocate a specified blocks in a memory block object. Note: use caution when mixing sys_mem_blocks_get and sys_mem_blocks_alloc, allocation may take any of the free memory space
@param[in] mem_block Pointer to memory block object. @param[in] in_block Address of the first required block to allocate @param[in] count Number of blocks to allocate.
@retval 0 Successful @retval -EINVAL Invalid argument supplied. @retval -ENOMEM Some of blocks are taken and cannot be allocated