miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
vfs_mount_data_t Struct Reference

#include <fs_types.h>

Public Attributes

uint8_t major
uint8_t minor

Detailed Description

vfs_mount_data_t - Generic mount parameters for block-backed filesystems.

Passed as the @data argument to vfs_mount_fstype() for any filesystem that reads from a block device. The FS implementation resolves the block device via blkdev_find(major, minor) to obtain the LBA bounds internally.

Example: vfs_mount_data_t d = { .major = BLKDEV_MAJOR_SATA, .minor = 1 }; vfs_mount_fstype("ext2", NULL, "/", &d);

Member Data Documentation

◆ major

uint8_t vfs_mount_data_t::major

◆ minor

uint8_t vfs_mount_data_t::minor

The documentation for this struct was generated from the following file: