Expand description
Process-wide translator state for the single guest-process model.
Consolidates guest FD table, bottle root, soft signal state, and syscall
limits behind one active slot (same pattern as crate::mem::AddressSpace).
Trap handlers and BSD syscalls access this via with_mut / with_ref.
Structs§
- Process
State - Owned process state for one guest (or unit-test isolation via reset).
Functions§
- bottle_
root - Clone of the configured bottle root, if any.
- fd_get
- Resolve guest FD → host FD without taking the process lock (I/O hot path).
- reset_
run - Resets FD/signals/counters for a new guest run (keeps bottle root).
- set_
bottle_ root - Configures the bottle root used by path-taking syscalls.
- tick_
syscall - Bumps the process-wide syscall counter without taking the process lock.
- with_
bottle_ root - Borrow the bottle root without cloning (hot path for path translation).
- with_
mut - Exclusive access to the active process state.
- with_
ref - Shared access to the active process state (concurrent FD lookups, etc.).