Function riot_sys::os_mempool_init

source ·
pub unsafe extern "C" fn os_mempool_init(
    mp: *mut os_mempool,
    blocks: u16,
    block_size: u32,
    membuf: *mut c_void,
    name: *mut c_char
) -> os_error_t
Expand description

Initialize a memory pool.

@param mp Pointer to a pointer to a mempool @param blocks The number of blocks in the pool @param blocks_size The size of the block, in bytes. @param membuf Pointer to memory to contain blocks. @param name Name of the pool.

@return os_error_t