    ,    
    ,      .

 -  -,     -
    dentry.

 -     dentry_hashtable.
          dentry, 
  .       
  .

    d_hash () ,    
    -.

  -     d_lookup ().   
dcache   ,    .  
   NULL.

         
 , /home/dracula/src/foo. .  ,  
    (,   ,   ,
    ),  VFS     
      : /, home, dracula, src , , foo.c.
         (  )   -
   ,     
,  VFS         dentry-
.    ,     
     .      
 dentry-,   VFS    .  -
    dentry    dcache,  -
   .

 dcache        icache.
 inode    dentry,   dentry 
        .
      dentry     -
 inode  .  ,    ,  -
       .
,          , 
      .

   

 dentry operations  ,   VFS -
       .  -
    <linux/dcache ,h>  .

struct dentry_operations {

int (*d_revalidate) (struct dentry *, int); 
int (*d_hash) (struct dentry *, struct qstr *);

int (*d compare) (struct dentry *, struct qstr *, struct qstr *);

int (*d delete) (struct dentry *);

void (*d release) (struct dentry *);

void (*d iput) (struct dentry *, struct inode *) ;

   281