PatchworkOS  19e446b
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
 
sbid_t id
 
uint64_t blockSize
 
uint64_t maxFileSize
 
void * data
 
dentry_troot
 Root dentry of the filesystem, should not take a reference.
 
const superblock_ops_tops
 
const dentry_ops_tdentryOps
 
const irp_vtable_tvtable
 
filesystem_tfs
 
atomic_uint64_t mountCount
 

Detailed Description

Superblock structure.

Definition at line 32 of file superblock.h.

Field Documentation

◆ ref

ref_t superblock_t::ref

Definition at line 34 of file superblock.h.

◆ entry

list_entry_t superblock_t::entry

Definition at line 35 of file superblock.h.

◆ id

sbid_t superblock_t::id

Definition at line 36 of file superblock.h.

◆ blockSize

uint64_t superblock_t::blockSize

Definition at line 37 of file superblock.h.

◆ maxFileSize

uint64_t superblock_t::maxFileSize

Definition at line 38 of file superblock.h.

◆ data

void* superblock_t::data

Definition at line 39 of file superblock.h.

◆ root

dentry_t* superblock_t::root

Root dentry of the filesystem, should not take a reference.

Definition at line 40 of file superblock.h.

◆ ops

const superblock_ops_t* superblock_t::ops

Definition at line 41 of file superblock.h.

◆ dentryOps

const dentry_ops_t* superblock_t::dentryOps

Definition at line 42 of file superblock.h.

◆ vtable

const irp_vtable_t* superblock_t::vtable

Definition at line 43 of file superblock.h.

◆ fs

filesystem_t* superblock_t::fs

Definition at line 44 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 51 of file superblock.h.


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