PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
filesystem_t Struct Reference

Filesystem structure, represents a filesystem type, e.g. fat32, tmpfs, devfs, etc. More...

#include <filesystem.h>

Collaboration diagram for filesystem_t:

Data Fields

list_entry_t entry
 Used internally.
 
map_entry_t mapEntry
 Used internally.
 
list_t superblocks
 Used internally.
 
rwlock_t lock
 Used internally.
 
const char * name
 
dentry_t *(* mount )(filesystem_t *fs, const char *details, void *data)
 Mount a filesystem.
 

Detailed Description

Filesystem structure, represents a filesystem type, e.g. fat32, tmpfs, devfs, etc.

Todo:
Add safety for if a module defining a filesystem is unloaded.

Definition at line 52 of file filesystem.h.

Field Documentation

◆ entry

list_entry_t filesystem_t::entry

Used internally.

Definition at line 54 of file filesystem.h.

◆ mapEntry

map_entry_t filesystem_t::mapEntry

Used internally.

Definition at line 55 of file filesystem.h.

◆ superblocks

list_t filesystem_t::superblocks

Used internally.

Definition at line 56 of file filesystem.h.

◆ lock

rwlock_t filesystem_t::lock

Used internally.

Definition at line 57 of file filesystem.h.

◆ name

const char* filesystem_t::name

Definition at line 58 of file filesystem.h.

◆ mount

dentry_t *(* filesystem_t::mount) (filesystem_t *fs, const char *details, void *data)

Mount a filesystem.

Parameters
fsThe filesystem to mount.
detailsA string containing filesystem defined key=value pairs, with multiple options separated by commas, or NULL.
privatePrivate data for the filesystem's mount function.
Returns
On success, the root dentry of the mounted filesystem. On failure, NULL and errno is set.

Definition at line 68 of file filesystem.h.


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