45 #ifndef _CL_CACHED_CKPT_H_
46 #define _CL_CACHED_CKPT_H_
62 #define CL_CACHED_CKPT_MAX_SECTION 1024
64 #define CL_CACHED_CKPT_SHM_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
65 #define CL_CACHED_CKPT_SHM_OPEN_FLAGS (O_RDWR)
66 #define CL_CACHED_CKPT_SHM_CREATE_FLAGS (O_RDWR | O_CREAT)
67 #define CL_CACHED_CKPT_SHM_EXCL_CREATE_FLAGS (O_RDWR | O_CREAT | O_EXCL)
68 #define CL_CACHED_CKPT_MMAP_FLAGS (MAP_SHARED)
69 #define CL_CACHED_CKPT_MMAP_PROT_FLAGS (PROT_READ | PROT_WRITE)
174 const SaNameT *ckptName,
175 const SaCkptCheckpointCreationAttributesT *ckptAttributes,
176 SaCkptCheckpointOpenFlagsT openFlags,
367 ClUint32T *sectionOffset);
394 ClUint32T *sectionOffset);
Typical defines found in any software project.
Common Error Codes shared across multiple Clovis ASP Components.
Header file of Server based Checkpoint Service Related APIs.
Header file of Ioc Data Structures and APIs.
Operating System Abstraction Layer API.
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168
#define CL_MAX_NAME_LENGTH
The Maximum length of most string names in the OpenClovis ASP framework.
Definition: clCommon.h:194
ClHandleT ClOsalSemIdT
The type of an identifier to the OSAL Semaphore ID.
Definition: clOsalApi.h:235
void clCachedCkptSectionGetNext(ClCachedCkptSvcInfoT *serviceInfo, ClCachedCkptDataT **sectionData, ClUint32T *sectionOffset)
Gets next section of the checkpoint.
void clCachedCkptSectionRead(ClCachedCkptSvcInfoT *serviceInfo, const ClNameT *sectionName, ClCachedCkptDataT **sectionData)
Reads a single section.
ClRcT clCachedCkptSectionUpdate(ClCachedCkptSvcInfoT *serviceInfo, const ClCachedCkptDataT *sectionData)
Updates a checkpoint section.
ClRcT clCachedCkptSectionCreate(ClCachedCkptSvcInfoT *serviceInfo, const ClCachedCkptDataT *sectionData)
Creates a section in the checkpoint.
ClRcT clCachedCkptInitialize(ClCachedCkptSvcInfoT *serviceInfo, const SaNameT *ckptName, const SaCkptCheckpointCreationAttributesT *ckptAttributes, SaCkptCheckpointOpenFlagsT openFlags, ClUint32T cachSize)
Initializes the Cached Checkpoint service.
void clCachedCkptSectionGetFirst(ClCachedCkptSvcInfoT *serviceInfo, ClCachedCkptDataT **sectionData, ClUint32T *sectionOffset)
Gets the first section of the checkpoint.
ClRcT clCachedCkptSectionDelete(ClCachedCkptSvcInfoT *serviceInfo, const ClNameT *sectionName)
Deletes a section in the checkpoint.
ClRcT clCachedCkptFinalize(ClCachedCkptSvcInfoT *serviceInfo)
Finalizes the Cached Checkpoint service.
ClRcT clCachedCkptSynch(ClCachedCkptSvcInfoT *serviceInfo, ClBoolT isEmpty)
Synchronizes the cache (local copy) with the checkpoint.
A name.
Definition: clCommon.h:197
The type of the CachedCkpt section data.
Definition: clCachedCkpt.h:74
ClIocAddressT sectionAddress
IOC address of the component "responsible" for this section.
Definition: clCachedCkpt.h:82
ClNameT sectionName
Name of the checkpoint section.
Definition: clCachedCkpt.h:78
ClUint8T * data
Data of the section.
Definition: clCachedCkpt.h:90
ClUint32T dataSize
Size of the section data.
Definition: clCachedCkpt.h:86
Cached Checkpoint global data structure.
Definition: clCachedCkpt.h:99
SaCkptHandleT ckptSvcHandle
Service handle used for checkpoint service.
Definition: clCachedCkpt.h:111
ClUint32T cachSize
Shared buffer size.
Definition: clCachedCkpt.h:119
ClUint8T * cache
Shared buffer.
Definition: clCachedCkpt.h:123
SaCkptCheckpointHandleT ckptHandle
Checkpoint handle.
Definition: clCachedCkpt.h:115
ClInt32T fd
File descriptor that refers to an open shared memory.
Definition: clCachedCkpt.h:103
ClOsalSemIdT cacheSem
Semaphore to protect Cached Checkpoint shared data.
Definition: clCachedCkpt.h:107
Client side data structure.
Definition: clCachedCkpt.h:453
ClUint32T cachSize
Shared buffer size.
Definition: clCachedCkpt.h:465
ClUint8T * cache
Shared buffer.
Definition: clCachedCkpt.h:469
ClInt32T fd
File descriptor that refers to an open shared memory.
Definition: clCachedCkpt.h:457
ClOsalSemIdT cacheSem
Semaphore to protect the shared memory.
Definition: clCachedCkpt.h:461
IOC address.
Definition: clIocApi.h:401