Expand description
Shared guest random-state and memory operations, independent of a backend. These synchronous operations preserve draws even when a later write fails.
Structs§
- Initial
Image - Identity of the sole initial image whose real auxv was already written. Backends must authenticate this identity before constructing a handoff.
- Random
Copy Failure - A user-access random copy failed for a reason other than a guest fault.
Enums§
- Loader
State - Authenticated loader result. Continuations carry no random state and must leave the ordinary newly constructed thread completely unchanged.
Constants§
- MAX_
INITIAL_ STATE_ BYTES - Fixed maximum for the backend-independent initial random-state handoff.
Functions§
- decode_
loader_ state - Decode an exact canonical, configuration- and image-bound loader result. The backend must obtain these bytes only from its authenticated callback.
- encode_
continuation - Encode a supervisor-authenticated legacy path without transferring RNG, clock, metadata or any auxiliary-vector completion fact.
- encode_
initial_ state - Encode only the actual PRNG and completed auxv identity. No clock, metadata, chaos RNG, scheduler state or request history is transferred.
- fill_
bytes - Fill guest memory from the same stream/chunk/write algorithm used by the normal Detcore handler. No syscall/scheduler accounting is performed here.
- getrandom
- Apply getrandom’s existing flag, length, null-buffer and fill semantics.
- initialize_
auxv - Draw and write the actual initial auxv bytes. A write failure preserves the consumed PRNG state, as in the normal post-exec callback.
- root_
prng - Construct the root guest stream from its configured seed, without creating a thread or discovering any process metadata.