riot_sys::bindgen

Function os_mempool_ext_init

Source
pub unsafe extern "C" fn os_mempool_ext_init(
    mpe: *mut os_mempool_ext,
    blocks: u16,
    block_size: u32,
    membuf: *mut c_void,
    name: *mut c_char,
) -> os_error_t
Expand description

Initializes an extended memory pool. Extended attributes (e.g., callbacks) are not specified when this function is called; they are assigned manually after initialization.

@param mpe The extended memory pool to initialize. @param blocks The number of blocks in the pool. @param block_size The size of each block, in bytes. @param membuf Pointer to memory to contain blocks. @param name Name of the pool.

@return os_error_t