Fennix  1.0.0
Full Documentation
Loading...
Searching...
No Matches
SuperBlockOperations Struct Reference

#include <fs.h>

Data Fields

int(* AllocateInode )(struct FileSystemInfo *Info, struct Inode **Result)
 
int(* DeleteInode )(struct FileSystemInfo *Info, struct Inode *Node)
 
int(* Synchronize )(struct FileSystemInfo *Info, struct Inode *Node)
 
int(* Destroy )(struct FileSystemInfo *Info)
 
int(* Probe )(struct FileSystemDevice *Device)
 
int(* Mount )(struct FileSystemInfo *FS, struct Inode **Root, struct FileSystemDevice *Device)
 
int(* Unmount )(struct FileSystemInfo *FS)
 

Detailed Description

Definition at line 348 of file fs.h.

Field Documentation

◆ AllocateInode

int(* SuperBlockOperations::AllocateInode) (struct FileSystemInfo *Info, struct Inode **Result)

Definition at line 350 of file fs.h.

◆ DeleteInode

int(* SuperBlockOperations::DeleteInode) (struct FileSystemInfo *Info, struct Inode *Node)

Definition at line 351 of file fs.h.

◆ Destroy

int(* SuperBlockOperations::Destroy) (struct FileSystemInfo *Info)

Destroy the filesystem.

Unregister the filesystem and free all resources.

Parameters
InfoFilesystem to destroy.
Returns
Zero on success, otherwise an error code.

Definition at line 374 of file fs.h.

◆ Mount

int(* SuperBlockOperations::Mount) (struct FileSystemInfo *FS, struct Inode **Root, struct FileSystemDevice *Device)

Mount the filesystem.

Mount the filesystem on the given device.

Parameters
FSFilesystem to mount.
RootPointer to the root inode.
DeviceDevice to mount. This pointer will be undefined after the function returns!
Returns
Zero on success, otherwise an error code.

Definition at line 398 of file fs.h.

◆ Probe

int(* SuperBlockOperations::Probe) (struct FileSystemDevice *Device)

Probe the filesystem.

Check if the filesystem is supported by the driver.

Parameters
DeviceDevice to probe.
Returns
Zero on success, otherwise an error code.

Definition at line 385 of file fs.h.

◆ Synchronize

int(* SuperBlockOperations::Synchronize) (struct FileSystemInfo *Info, struct Inode *Node)

Synchronize the filesystem.

Write all pending changes to the disk.

Parameters
InfoInode to synchronize.
NodeInode to synchronize. If NULL, synchronize all inodes.
Returns
Zero on success, otherwise an error code.

Definition at line 363 of file fs.h.

◆ Unmount

int(* SuperBlockOperations::Unmount) (struct FileSystemInfo *FS)

Unmount the filesystem.

Unmount the filesystem from the given device.

Parameters
FSFilesystem to unmount.
Returns
Zero on success, otherwise an error code.

Definition at line 409 of file fs.h.


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