Skip to main content

Module fs

Module fs 

Source
Expand description

Reusable synthetic 9P filesystem for services.

Services that expose a synthetic file tree (model status, tool schemas, etc.) construct a SyntheticTree at startup, register nodes, and delegate 9P operations to it. The tree handles fid allocation, walk resolution, open/read/write dispatch, and idle fid reaping.

This is the synthetic counterpart to the registry’s real-filesystem 9P handler. No real files — all content is generated by closures.

Structs§

OneshotState
State for a OneshotFile node.
SyntheticFidTable
Fid table for synthetic filesystem. Per-client fid counts and idle reaping.
SyntheticQid
Synthetic Qid: deterministic FNV-1a hash of the path string as the inode, with a constant version.
SyntheticTree
A synthetic 9P file tree backed by closures.

Enums§

SyntheticNode
A node in the synthetic file tree.