CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::ComponentInfoStruct Struct Reference

One component's registry record in shared memory. More...

#include <ComponentMemory.h>

Collaboration diagram for cmlabs::ComponentInfoStruct:
[legend]

Public Member Functions

std::string toXML (bool printStats=true)
bool writeToMsg (uint32 n, DataMessage *msg)

Public Attributes

uint64 size
 Total record size in bytes including parameter and data areas.
uint32 id
 Component id (index into the segment's offset table).
uint8 syncStatus
 Cluster sync status (0: not there, 1: in-sync, 2: ready).
uint8 selfTrigger
 SELFTRIGGER_* policy.
uint8 type
 Component type (Whiteboard, Catalog, Module, ...).
uint8 status
 COMPSTATUS_* run status.
uint8 policy
 Migration policy (COMPONENT_CAN_MIGRATE flag).
uint16 nodeID
 Node the component currently runs on.
uint16 procID
 Process (space) the component currently runs in.
uint64 createdTime
 Creation timestamp (µs).
uint64 migratedTime
 Timestamp of the last migration (µs), 0 if never migrated.
uint64 lastUpdateTime
 Timestamp of the last record update (µs).
char name [MAXKEYNAMELEN]
 Component name (unique per system).
ComponentStats stats
AveragePerfStats perfStats
uint16 paramCount
uint32 paramSize
uint16 dataCount
uint64 dataSize

Detailed Description

One component's registry record in shared memory.

Variable-sized: the fixed fields below are followed by paramSize bytes of parameters (ParamHeader entries) and dataSize bytes of private data (PrivateHeader entries).

Warning
Shared-memory layout; see MemoryManager.h for the ABI/rebuild warning.

Definition at line 141 of file ComponentMemory.h.

Member Function Documentation

◆ toXML()

std::string cmlabs::ComponentInfoStruct::toXML ( bool printStats = true)
inline

◆ writeToMsg()

bool cmlabs::ComponentInfoStruct::writeToMsg ( uint32 n,
DataMessage * msg )
inline

Member Data Documentation

◆ createdTime

uint64 cmlabs::ComponentInfoStruct::createdTime

◆ dataCount

uint16 cmlabs::ComponentInfoStruct::dataCount

◆ dataSize

◆ id

uint32 cmlabs::ComponentInfoStruct::id

Component id (index into the segment's offset table).

Definition at line 143 of file ComponentMemory.h.

◆ lastUpdateTime

uint64 cmlabs::ComponentInfoStruct::lastUpdateTime

Timestamp of the last record update (µs).

Definition at line 154 of file ComponentMemory.h.

Referenced by toXML().

◆ migratedTime

uint64 cmlabs::ComponentInfoStruct::migratedTime

Timestamp of the last migration (µs), 0 if never migrated.

Definition at line 153 of file ComponentMemory.h.

Referenced by toXML().

◆ name

◆ nodeID

◆ paramCount

◆ paramSize

◆ perfStats

AveragePerfStats cmlabs::ComponentInfoStruct::perfStats

◆ policy

uint8 cmlabs::ComponentInfoStruct::policy

◆ procID

◆ selfTrigger

◆ size

◆ stats

◆ status

uint8 cmlabs::ComponentInfoStruct::status

◆ syncStatus

◆ type


The documentation for this struct was generated from the following file: