[][src]Function mynewt::kernel::os::os_mempool_ext_init

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

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

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

Return: os_error_t