INtime SDK Help
mpool_ptr2pool
INtime SDK v7 > About INtime > Other system libraries > Heaps and memory pools > Memory pools > mpool_ptr2pool

Retrieves the pool associated with a buffer.

MPOOL mpool_ptr2pool(
    void *  buf
);

Parameters

buf
A pointer to a buffer created by mpool_alloc or mpool_realloc.

Return Values

A pointer to the mpool buf belongs to.
Success.
Unknown
Failure. The function sets errno to this value:
EINVAL The pool is not a valid MPOOL buffer.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/mpool.h mpool.h clib.lib
   
See Also