Skip to content
Start free evaluation

PdcommSecs1State

Struct

Snapshot of an endpoint, filled by pdcomm_secs1_state().

typedef struct PdcommSecs1State { ... } PdcommSecs1State

Declared in: #include <pdcomm_secs1.h>

Members

endpoint_id

Field

Process-unique, nonzero endpoint identifier.

uint64_t endpoint_id

Declared in: #include <pdcomm_secs1.h>

faulted

Field

1 while a terminal fault is active, until pdcomm_secs1_reset() or stop.

uint8_t faulted

Declared in: #include <pdcomm_secs1.h>

generation

Field

Current generation; starts at 1 and grows with each restart after stop.

uint64_t generation

Declared in: #include <pdcomm_secs1.h>

poisoned

Field

1 after a contained panic poisoned the endpoint; otherwise 0.

uint8_t poisoned

Declared in: #include <pdcomm_secs1.h>

Every other endpoint call then returns #PDCOMM_POISONED; destroy the endpoint and create a new one.

started

Field

1 after pdcomm_secs1_start() until pdcomm_secs1_stop(); otherwise 0.

uint8_t started

Declared in: #include <pdcomm_secs1.h>

stopped

Field

1 after pdcomm_secs1_stop() until the next start; otherwise 0.

uint8_t stopped

Declared in: #include <pdcomm_secs1.h>

struct_size

Field

Structure size in bytes.

size_t struct_size

Declared in: #include <pdcomm_secs1.h>

Set it to sizeof(PdcommSecs1State) or larger before the call. On success the library stores the size of the layout it wrote.