# [−][src]Type Definition mynewt::kernel::os::os_mempool_put_fn

    type os_mempool_put_fn = Option<unsafe extern "C" fn(ome: *mut os_mempool_ext, data: *mut c_void, arg: *mut c_void) -> os_error_t>;

Block put callback function. If configured, this callback gets executed whenever a block is freed to the corresponding extended mempool. Note: The os_memblock_put() function calls this callback instead of freeing the block itself. Therefore, it is the callback's responsibility to free the block via a call to os_memblock_put_from_cb().

- `ome`: The extended mempool that a block is being freed back to.
- `data`: The block being freed.
- `arg`: Optional argument configured along with the callback.

Return: Indicates whether the block was successfully freed. A non-zero value should only be returned if the block was not successfully released back to its pool.

# 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`)