# [−][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

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)