Expand description
Process-wide translator state for the single guest-process model.
Hot paths avoid the process RwLock:
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.
- close_
dir_ stream - Closes any directory stream associated with
gfd(call before FD free). - fd_
alloc - Allocates a guest FD for
host_fdwithout the process lock. - fd_get
- Resolve guest FD → host FD without taking the process lock (I/O hot path).
- fd_take
- Removes a guest FD mapping and returns the host FD (lock-free).
- readdir_
next_ into - Next directory entry for
gfd, writing the name intoname_out(NUL-terminated). - 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.