Skip to main content

Crate pseudoroot_core

Crate pseudoroot_core 

Source
Expand description

Shared state, IPC, and session backing for pseudoroot.

Both the CLI/API crate (pseudoroot) and the interposed cdylib (pseudoroot-lib) depend on this crate. It owns the inode-keyed fake metadata model and the two multi-process backends:

  • shm_map / shm_client — lock-free shared-memory hash table inherited across exec within a session (default).
  • daemon_server / daemon_client — Unix-socket RPC for external or in-process daemons (pdrd, pdr start, or PSEUDOROOT_SESSION_SHM=0).

Per-process fallback lives in state (global_state_read / global_state_write), used when neither SHM nor daemon mode is active.

See the architecture guide for end-to-end flows and backend selection.

Re-exports§

pub use state::FakeInode;
pub use state::FakeRootState;
pub use state::InodeKey;

Modules§

daemon_client
Daemon client for connecting to pseudoroot-daemon
daemon_server
In-process and standalone fake-root daemon server.
protocol
IPC protocol for communication between pseudoroot-lib and pseudoroot-daemon
shm_client
Client-side access to an inherited session shared-memory map.
shm_map
Experimental shared-memory inode map for session mode (Linux and macOS).
state
Fake root state management