 ,   ,     
  ,  ,     ,   
  .

      VFS    -
 (directory entry  dentry).  dentry     .
    /, bin  vi    .
    ,     .   -
 ,    dentry    ,    .

        .   
/mnt/cdrom/foo,  /, mnt, cdrom  foo     dentry.
|  VFS        -
     .

  dentry     struct dentry 
   <linux/dcache.h>.    , 
   ,   .

struct dentry {

atomic_t          '     d_count;   /*   */
unsigned long           d vfs flags; /*    dentry */
spinlock t              d lock;    /*    dentry*/
struct inode            *d_inode;  /*    */
struct list head        d Iru;     /*   */
struct list_head        d_child;   /*    

 */
struct list_head        d_subdirs; /*  */
struct list head        d alias;   /*   (alias)

 */
unsigned long           d time;    /*    */
struct dentry_operations *d_op;     /*    

 */
struct super block      *d sb;     /*   */
unsigned int            d_flags;   /*    */
int                     d mounted; /*    

 */
void                    *d fsdata; /*    */
struct rcu head         d rcu;     /* RCU (read-copy update)*/
struct dcookie struct   *d cookie; /* cookie- */
struct dentry           *d_parent; /* dentry  */
struct qstr             d_name;    /*  dentry */
struct hlist node       d hash;    /*   */
struct hlist_head       *d_bucket; /*  - */
unsigned char           d iname[DNAME INLINE LEN MIN];/*  */
};

     ,  dentry    
       .  VSF   -
        .  
      ,    struct dentry
  ,    ,    (..   
    ).

                                                    279