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

Root header of the process-memory segment: fixed process table plus queue index. More...

#include <ProcessMemory.h>

Collaboration diagram for cmlabs::ProcessMemoryStruct:
[legend]

Public Attributes

uint64 size
 Total segment size in bytes.
uint32 cid
 Check/magic id validated on attach.
uint64 createdTime
uint32 count
 Number of process entries in use.
uint64 usage
 Bytes currently in use in the segment.
ProcessInfoStruct processes [MAXPROC]
 Fixed-size process table.
uint64 qIndex [MAXPROC *4]
 Byte offsets of each process's four queues (0 = none).

Detailed Description

Root header of the process-memory segment: fixed process table plus queue index.

qIndex holds byte offsets (within the segment) of up to MAXPROC*4 queues; the queues themselves follow in the remainder of the segment and are resized on demand.

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

Definition at line 142 of file ProcessMemory.h.

Member Data Documentation

◆ cid

uint32 cmlabs::ProcessMemoryStruct::cid

Check/magic id validated on attach.

Definition at line 144 of file ProcessMemory.h.

Referenced by cmlabs::ProcessMemory::open().

◆ count

uint32 cmlabs::ProcessMemoryStruct::count

Number of process entries in use.

Definition at line 146 of file ProcessMemory.h.

◆ createdTime

uint64 cmlabs::ProcessMemoryStruct::createdTime

Definition at line 145 of file ProcessMemory.h.

◆ processes

ProcessInfoStruct cmlabs::ProcessMemoryStruct::processes[MAXPROC]

Fixed-size process table.

Definition at line 148 of file ProcessMemory.h.

◆ qIndex

uint64 cmlabs::ProcessMemoryStruct::qIndex[MAXPROC *4]

Byte offsets of each process's four queues (0 = none).

Definition at line 149 of file ProcessMemory.h.

◆ size

uint64 cmlabs::ProcessMemoryStruct::size

Total segment size in bytes.

Definition at line 143 of file ProcessMemory.h.

◆ usage

uint64 cmlabs::ProcessMemoryStruct::usage

Bytes currently in use in the segment.

Definition at line 147 of file ProcessMemory.h.


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