kernel/fs/vfs_v2/drivers/
mod.rs

1//! VFS v2 Filesystem Drivers
2//!
3//! This module contains all filesystem drivers that implement the VFS v2
4//! FileSystemOperations interface. Each driver provides a specific filesystem
5//! type with its own characteristics and use cases.
6//!
7//! ## Available Drivers
8//!
9//! - **tmpfs**: Memory-based temporary filesystem with optional size limits
10//! - **cpiofs**: Read-only CPIO archive filesystem for initramfs
11//! - **overlayfs**: Union/overlay filesystem combining multiple layers
12//! - **initramfs**: Helper module for mounting initramfs during boot
13//! - **devfs**: Device filesystem that automatically exposes all registered devices
14//!
15//! ## Adding New Drivers
16//!
17//! To add a new filesystem driver:
18//!
19//! 1. Create a new module implementing `FileSystemOperations`
20//! 2. Implement `VfsNode` for your filesystem's node type
21//! 3. Add a driver struct implementing `FileSystemDriverV2`
22//! 4. Register the driver in the driver manager during initialization
23//!
24//! ## Driver Registration
25//!
26//! All drivers in this module automatically register themselves using
27//! the `driver_initcall!` macro during kernel initialization.
28
29pub mod overlayfs;
30pub mod cpiofs;
31pub mod tmpfs;
32pub mod initramfs;
33pub mod devfs;