riot_sys::bindgen

Function os_memblock_from

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

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

@param mp The mempool to check as parent. @param block_addr The memory block to check as child.

@return 0 if the block does not belong to the mempool; 1 if the block does belong to the mempool.