os_memblock_from() function
Checks if a memory block was allocated from the specified mempool.
Arguments
mp
The mempool to check as parent.
block_addr
The memory block to check as child.
Return value
0 if the block does not belong to the mempool; 1 if the block does belong to the mempool.