Collaboration diagram for TFS Instantiation:

Functions

RDM_RETCODE rdm_rdmAllocTFS (RDM_TFS *phTFS)
Allocate a TFS handle. More...
RDM_RETCODE rdm_rdmAllocTFSWithMemBuf (void *pMemBuf, size_t memSize, RDM_TFS *phTFS)
Allocate a TFS handle with an associated memory buffer. More...

Detailed Description

The TFS instantiation API. The functions here are located in Transactional File Server Interface Library. Linker option:

    -lrdmtfs

Function Documentation

rdm_rdmAllocTFS()

rdm_rdmAllocTFSWithMemBuf()

RDM_RETCODE rdm_rdmAllocTFSWithMemBuf ( void * pMemBuf,
size_t memSize,
RDM_TFS * phTFS
)

#include <rdmrdmapi.h>

Allocate a TFS handle with an associated memory buffer.

Allocate the TFS handle and use the associated memory buffer instead of malloc for memory requests. If no memory buffer is specified and memSize is greater than 0 memSize will serve as the memory limit for the TFS, but memory will be obtained via calls to malloc.

Note
Until further notice the buffer provided and the size requested will be used for all TFS handles. This function should only be used once for allocating the first TFS handle. This semantic is subject to change.
Return values
sOKAY Normal, successful return.
eNOMEMORY Out of memory.
See also
rdm_rdmAllocTFS
rdm_tfsGetMemUsage
Parameters
[in] pMemBuf The memory buffer to use instead of getting memory from malloc
[in] memSize The memory size limit (size of pMemBuf if pMemBuf is not NULL)
[out] phTFS TFS handle