RTEMS now provides a mechanism for interrogating the memory allocator.

This commit is contained in:
W. Eric Norum
2001-06-23 20:44:29 +00:00
parent e4447d8c97
commit 33e11134e5

View File

@@ -0,0 +1,12 @@
#include <rtems/libcsupport.h>
#define epicsExportSharedSymbols
#include "osiPoolStatus.h"
/*
* osiSufficentSpaceInPool ()
*/
epicsShareFunc int epicsShareAPI osiSufficentSpaceInPool ()
{
return (malloc_free_space() > 100000);
}