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

Inode structure. More...

#include <inode.h>

Collaboration diagram for inode_t:

Public Member Functions

 _Atomic (uint64_t) dentryCount
 The number of dentries pointing to this inode.
 

Data Fields

ref_t ref
 
inode_number_t number
 Constant after creation.
 
inode_type_t type
 Constant after creation.
 
inode_flags_t flags
 
uint64_t size
 
uint64_t blocks
 
time_t accessTime
 Unix time stamp for the last inode access.
 
time_t modifyTime
 Unix time stamp for last file content alteration.
 
time_t changeTime
 Unix time stamp for the last file metadata alteration.
 
time_t createTime
 Unix time stamp for the inode creation.
 
void * private
 
superblock_tsuperblock
 Constant after creation.
 
const inode_ops_tops
 Constant after creation.
 
const file_ops_tfileOps
 Constant after creation.
 
mutex_t mutex
 

Detailed Description

Inode structure.

Inodes are owned by the filesystem, not the VFS.

Definition at line 55 of file inode.h.

Member Function Documentation

◆ _Atomic()

inode_t::_Atomic ( uint64_t  )

The number of dentries pointing to this inode.

Field Documentation

◆ ref

ref_t inode_t::ref

Definition at line 57 of file inode.h.

◆ number

inode_number_t inode_t::number

Constant after creation.

Definition at line 58 of file inode.h.

◆ type

inode_type_t inode_t::type

Constant after creation.

Definition at line 59 of file inode.h.

◆ flags

inode_flags_t inode_t::flags

Definition at line 60 of file inode.h.

◆ size

uint64_t inode_t::size

Definition at line 62 of file inode.h.

◆ blocks

uint64_t inode_t::blocks

Definition at line 63 of file inode.h.

◆ accessTime

time_t inode_t::accessTime

Unix time stamp for the last inode access.

Definition at line 64 of file inode.h.

◆ modifyTime

time_t inode_t::modifyTime

Unix time stamp for last file content alteration.

Definition at line 65 of file inode.h.

◆ changeTime

time_t inode_t::changeTime

Unix time stamp for the last file metadata alteration.

Definition at line 66 of file inode.h.

◆ createTime

time_t inode_t::createTime

Unix time stamp for the inode creation.

Definition at line 67 of file inode.h.

◆ private

void* inode_t::private

Definition at line 68 of file inode.h.

◆ superblock

superblock_t* inode_t::superblock

Constant after creation.

Definition at line 69 of file inode.h.

◆ ops

const inode_ops_t* inode_t::ops

Constant after creation.

Definition at line 70 of file inode.h.

◆ fileOps

const file_ops_t* inode_t::fileOps

Constant after creation.

Definition at line 71 of file inode.h.

◆ mutex

mutex_t inode_t::mutex

Definition at line 72 of file inode.h.


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