10 #include <rtems/malloc.h> 19 rtems_malloc_statistics_t s;
22 malloc_get_statistics(&s);
23 n = s.space_available - (
unsigned long)(s.lifetime_allocated - s.lifetime_freed);
24 return (n > (50000 + contiguousBlockSize));
Functions to check the state of the system memory pool.
LIBCOM_API int epicsStdCall osiSufficentSpaceInPool(size_t contiguousBlockSize)
Checks if a memory block of a specific size can be safely allocated.