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

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

Initialize a memory pool.

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

Return: os_error_t