EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
osiPoolStatus.h File Reference

Functions to check the state of the system memory pool. More...

#include <stdlib.h>
#include "libComAPI.h"
#include "osdPoolStatus.h"
Include dependency graph for osiPoolStatus.h:

Go to the source code of this file.

Functions

LIBCOM_API int epicsStdCall osiSufficentSpaceInPool (size_t contiguousBlockSize)
 Checks if a memory block of a specific size can be safely allocated. More...
 

Detailed Description

Author
Jeff Hill

Definition in file osiPoolStatus.h.

Function Documentation

LIBCOM_API int epicsStdCall osiSufficentSpaceInPool ( size_t  contiguousBlockSize)

The meaning of "safely allocated" is target-specific, some additional free space is usually necessary to keep the system running reliably. On vxWorks this returns True if at least 100000 bytes is free.

Note
This routine is called quite frequently by the IOC so an efficient implementation is important.
Parameters
contiguousBlockSizeBlock size to check.
Returns
True if the requested memory should be available.