PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
dentry_t Struct Reference

Directory entry structure. More...

#include <dentry.h>

Collaboration diagram for dentry_t:

Public Member Functions

 _Atomic (dentry_flags_t) flags
 
 _Atomic (uint64_t) mountCount
 Number of mounts targeting this dentry.
 

Data Fields

ref_t ref
 
dentry_id_t id
 
char name [MAX_NAME]
 Constant after creation.
 
inode_tinode
 Will be NULL if the dentry is negative, once positive it will never be NULL.
 
dentry_tparent
 
list_entry_t siblingEntry
 
list_t children
 
superblock_tsuperblock
 
const dentry_ops_tops
 
void * private
 
map_entry_t mapEntry
 
list_entry_t otherEntry
 Made available for use by any other subsystems for convenience.
 

Detailed Description

Directory entry structure.

A dentry structure is protected by the mutex of its inode.

Definition at line 83 of file dentry.h.

Member Function Documentation

◆ _Atomic() [1/2]

dentry_t::_Atomic ( dentry_flags_t  )

◆ _Atomic() [2/2]

dentry_t::_Atomic ( uint64_t  )

Number of mounts targeting this dentry.

Field Documentation

◆ ref

ref_t dentry_t::ref

Definition at line 85 of file dentry.h.

◆ id

dentry_id_t dentry_t::id

Definition at line 86 of file dentry.h.

◆ name

char dentry_t::name[MAX_NAME]

Constant after creation.

Definition at line 87 of file dentry.h.

◆ inode

inode_t* dentry_t::inode

Will be NULL if the dentry is negative, once positive it will never be NULL.

Definition at line 88 of file dentry.h.

◆ parent

dentry_t* dentry_t::parent

Definition at line 90 of file dentry.h.

◆ siblingEntry

list_entry_t dentry_t::siblingEntry

Definition at line 91 of file dentry.h.

◆ children

list_t dentry_t::children

Definition at line 92 of file dentry.h.

◆ superblock

superblock_t* dentry_t::superblock

Definition at line 93 of file dentry.h.

◆ ops

const dentry_ops_t* dentry_t::ops

Definition at line 94 of file dentry.h.

◆ private

void* dentry_t::private

Definition at line 95 of file dentry.h.

◆ mapEntry

map_entry_t dentry_t::mapEntry

Definition at line 96 of file dentry.h.

◆ otherEntry

list_entry_t dentry_t::otherEntry

Made available for use by any other subsystems for convenience.

Definition at line 98 of file dentry.h.


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