PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
superblock_t Struct Reference

Superblock structure. More...

#include <superblock.h>

Collaboration diagram for superblock_t:

Data Fields

ref_t ref
 
list_entry_t entry
 
superblock_id_t id
 
uint64_t blockSize
 
uint64_t maxFileSize
 
void * private
 
dentry_troot
 
const superblock_ops_tops
 
const dentry_ops_tdentryOps
 
filesystem_tfs
 
char deviceName [MAX_NAME]
 
atomic_uint64_t mountCount
 

Detailed Description

Superblock structure.

Superblocks are owned by the VFS, not the filesystem.

Definition at line 43 of file superblock.h.

Field Documentation

◆ ref

ref_t superblock_t::ref

Definition at line 45 of file superblock.h.

◆ entry

list_entry_t superblock_t::entry

Definition at line 46 of file superblock.h.

◆ id

superblock_id_t superblock_t::id

Definition at line 47 of file superblock.h.

◆ blockSize

uint64_t superblock_t::blockSize

Definition at line 48 of file superblock.h.

◆ maxFileSize

uint64_t superblock_t::maxFileSize

Definition at line 49 of file superblock.h.

◆ private

void* superblock_t::private

Definition at line 50 of file superblock.h.

◆ root

dentry_t* superblock_t::root

Definition at line 51 of file superblock.h.

◆ ops

const superblock_ops_t* superblock_t::ops

Definition at line 52 of file superblock.h.

◆ dentryOps

const dentry_ops_t* superblock_t::dentryOps

Definition at line 53 of file superblock.h.

◆ fs

filesystem_t* superblock_t::fs

Definition at line 54 of file superblock.h.

◆ deviceName

char superblock_t::deviceName[MAX_NAME]

Definition at line 55 of file superblock.h.

◆ mountCount

atomic_uint64_t superblock_t::mountCount

The number of mounts of this superblock.

Note that this does need to be separate from the reference count as a superblock is referenced by mounts, but it can also be referenced by other things like open files.

Definition at line 62 of file superblock.h.


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