osiPoolStatus.h

Functions to check the state of the system memory pool.

Author

Jeff Hill

Functions

int osiSufficentSpaceInPool(size_t contiguousBlockSize)

Checks if a memory block of a specific size can be safely allocated.

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:

contiguousBlockSize – Block size to check.

Returns:

True if the requested memory should be available.