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

Gets the statistics for a memory pool.

BOOLEAN mpool_stats(
    MPOOL pool, 
    MPOOL_STATS * stats
);

Parameters

pool
The memory pool created by mpool_create.
stats
A pointer to a statistics structure.

Remarks

Use this call only in a low-priority context as it may slow your system. The pool is locked for the duration of the call.

Return Values

TRUE
Success.
FALSE
Failure. The function sets errno to one of these values:
EINVAL The heap is deleted.
EINVAL The pool is not a valid MPOOL stats is NULL, or an internal error exists.

Requirements

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