Skip to main content

Module scheme_router

Module scheme_router 

Source
Expand description

Scheme Router (SR) - central registry for all schemes.

The Scheme Router manages scheme registration and provides a unified interface for mounting schemes in the VFS namespace.

§Usage

// Register a scheme
let scheme_id = scheme_router::register("my_scheme", my_scheme);

// Mount at a path
mount_scheme("my_scheme", "/my/path")?;

Structs§

SchemeEntry
Scheme registry entry
SchemeRouter
Scheme router state

Functions§

get_scheme
Get a scheme by name
init_builtin_schemes
Initialize built-in schemes
list_schemes
List all registered schemes (for debugging)
mount_scheme
Mount a registered scheme at a path
register_initfs_file
Register a static file in the kernel-backed /initfs scheme.
register_ipc_scheme
Create and register an IPC scheme for a userspace server
register_scheme
Register a scheme globally