Skip to main content

Module pass_budget

Module pass_budget 

Source
Expand description

42 MiB Sentinel pass accounting (E03.4) and reclaim on every outcome (E03.5).

This is accounting only. It does not allocate crate::governance::webizen::SlgArena, does not map 42 MiB of RAM, and is not a measured process RSS. Callers charge arena, scratch, crypto, kernel and pinned bytes against SENTINEL_PASS_TOTAL.

Structs§

PassCharge
Explicit pass charge components (E03.4).
PassGuard
RAII Sentinel pass. Reclaims on success, error, and unwind. Does not map 42 MiB.

Enums§

PassOutcome
Terminal pass outcomes that must still reclaim (E03.5).

Constants§

SENTINEL_PASS_TOTAL
Exact 42 MiB pass ceiling. Same value as SENTINEL_PASS_BYTES.

Functions§

charge_pass
Checked sum of every charged class. Greater than 42 MiB → QdnfError::Capacity.
reclaim_pass
Reclaim charged pass bytes. Every outcome returns 0 remaining.