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:
-l
rdmtfs
Function Documentation
rdm_rdmAllocTFS()
RDM_RETCODE rdm_rdmAllocTFS | ( | RDM_TFS * | phTFS | ) |
#include <rdmrdmapi.h>
Allocate a TFS handle.
Allocate the TFS handle and use the of malloc for memory requests.
- Return values
-
sOKAY Normal, successful return. eNOMEMORY Out of memory.
- See also
- rdm_rdmAllocTFSWithMemBuf
- rdm_tfsEnableListener
- rdm_tfsPing
- rdm_tfsAllocEncrypt
- rdm_tfsSetOptions
- rdm_tfsAllocDatabase
- rdm_tfsDropDatabase
- rdm_tfsKillAllRemoteConnections
- rdm_tfsGetMemUsage
- rdm_tfsFree
- Parameters
-
[out] phTFS TFS handle
- Examples
- core01Example_main.c, core12Example_main.c, core15Example_main.c, core16Example_main.c, core17Example_main.c, core18Example_main.c, core19Example_main.c, core31Example_main.c, core32Example_main.c, core33Example_main.c, core34Example_main.c, core35Example_main.c, core36Example_main.c, core37Example_main.c, core38Example_main.c, cpp55Example_main.cpp, cpp70Example_main.cpp, learn/bookStore_client.c, learn/bookStore_embed.c, learn/bookStore_vxWorks7.c, odbc01Example_main.c, tfs/rdmAllocTFS.c, tfsrdbc/rdbcTfsAlloc.c, and tfsrdbc/rdbcTfsAllocDefault.c.
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
- Examples
- cpp50Example_main.cpp.