Expand description
Build-time configurable constants.
Values are set via environment variables at build time. See build.rs for env var names and defaults.
Constants§
- ARENA_
SIZE - Executor arena size in bytes (derived from MAX_CBS and RX_BUF_SIZE).
- DEFAULT_
RX_ BUF_ SIZE - Default subscription receive buffer size in bytes (set via NROS_SUBSCRIPTION_BUFFER_SIZE, default 1024).
- MAX_CBS
- Maximum number of executor callback slots (set via NROS_EXECUTOR_MAX_CBS, default 4).
- MAX_
NODES - Maximum number of Nodes attached to a single Executor (set via NROS_EXECUTOR_MAX_NODES, default 4). Phase 104.C.2.
- MAX_SC
- Maximum number of
SchedContextslots per executor (set via NROS_EXECUTOR_MAX_SC, default 8). Phase 110.B. - PARAM_
SERVICE_ BUFFER_ SIZE - Parameter service request/reply buffer size in bytes (set via NROS_PARAM_SERVICE_BUFFER_SIZE, default 4096).
Functions§
- arena_
size_ for - phase-271 — default arena bytes for a per-entry executor holding
cbscallback slots. Scales the build-timeARENA_SIZE(which is sized for the defaultMAX_CBS) linearly bycbs, so a per-entryExecutorSizingwith a caller-chosencbsgets the same per-slot arena budget the global default used — a fat entry (more callbacks) gets a larger arena, a lean one a smaller one — without a workspace-globalNROS_EXECUTOR_ARENA_SIZE. Floored at the full default so no per-entry executor is ever smaller than a single-slot build would have been (the arena is a worst-case upper bound; over-provision is safe, under-provision fails entity creation).