This is Unofficial EPICS BASE Doxygen Site
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:
+ This graph shows which files directly or indirectly include this file:

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

Functions to check the state of the system memory pool.

Author
Jeff Hill

Definition in file osiPoolStatus.h.

Function Documentation

LIBCOM_API int epicsStdCall 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 efficent implementation is important.
Parameters
contiguousBlockSizeBlock size to check.
Returns
True if the requested memory should be available.

Definition at line 19 of file osdPoolStatus.c.

20 {
21  return 1;
22 }