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//! - **fat32**: FAT32 filesystem driver for block devices
15//! - **ext2**: ext2 filesystem driver for block devices
16//!
17//! ## Adding New Drivers
18//!
19//! To add a new filesystem driver:
20//!
21//! 1. Create a new module implementing `FileSystemOperations`
22//! 2. Implement `VfsNode` for your filesystem's node type
23//! 3. Add a driver struct implementing `FileSystemDriverV2`
24//! 4. Register the driver in the driver manager during initialization
25//!
26//! ## Driver Registration
27//!
28//! All drivers in this module automatically register themselves using
29//! the `driver_initcall!` macro during kernel initialization.
30
31pub mod cpiofs;
32pub mod devfs;
33pub mod ext2;
34pub mod fat32;
35pub mod initramfs;
36pub mod overlayfs;
37pub mod tmpfs;