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

pub unsafe extern "C" fn os_memblock_from(
    mp: *const os_mempool,
    block_addr: *const c_void
) -> c_int

Checks if a memory block was allocated from the specified mempool.

Return: 0 if the block does not belong to the mempool; 1 if the block does belong to the mempool.