Skip to main content

Module scheme

Module scheme 

Source
Expand description

Scheme abstraction : backends for VFS operations.

Schemes provide the actual implementation for file operations. Examples: IPC-based schemes (ext4, network), kernel schemes (devfs, procfs).

Structs§

DirEntry
A single directory entry returned by readdir.
FileFlags
Flags describing a file’s properties.
FileStat
File status information (returned by SYS_FSTAT, SYS_STAT, SYS_FSTATAT).
IpcScheme
IPC-based scheme: forwards operations to a userspace server via IPC.
KernelScheme
Kernel-backed scheme: serves files from kernel memory (read-only).
OpenFlags
File open flags for SYS_OPEN and SYS_OPENAT.
OpenResult
Result of an open operation.

Enums§

AsyncSubmitResult

Constants§

DEV_CHAR_FS
DEV_CONSOLE
DEV_DEVFS
DEV_INPUT
DEV_IPCFS
DEV_NETFS
DEV_PIPEFS
DEV_PROCFS
DEV_RAMFS
DEV_SYSFS
DT_BLK
Block device.
DT_CHR
Character device.
DT_DIR
Directory.
DT_FIFO
FIFO (named pipe).
DT_LNK
Symbolic link.
DT_REG
Regular file.
DT_SOCK
Unix domain socket.
DT_UNKNOWN
Unknown file type.
IPC_FILE_FLAG_APPEND
Directory entry flag: file is opened in append mode.
IPC_FILE_FLAG_CHUNK_READ
Directory entry flag: supports chunked reads.
IPC_FILE_FLAG_CHUNK_WRITE
Directory entry flag: supports chunked writes.
IPC_FILE_FLAG_DEVICE
Directory entry flag: this entry is a device file.
IPC_FILE_FLAG_DIRECTORY
Directory entry flag: this entry is a directory.
IPC_FILE_FLAG_PIPE
Directory entry flag: this entry is a pipe.

Traits§

Scheme
Abstraction for a filesystem/service backend.

Functions§

finalize_pseudo_stat
Finalize pseudo-filesystem stats with a stable device identity and synthetic timestamps.

Type Aliases§

DynScheme
Type-erased Scheme reference.