?? dcache.h.txt
字號:
and problems,send mails to sindybear@163.com
相關文件
這個文件主要負責目錄換存的管理,為了提高目錄訪問的效率,設置了目錄換存區,其中主要的基本結構
就是dentry結構,這個結構中有許多鏈表結構來將這些結構連接起來。
dentry結構的主要作用是表示一個文件或者目錄在內存中的邏輯結構,但一個文件并不一定僅僅對應一個
dentry結構,例如有一個文件有一個符號連接,那么這個文件和文件的符號連接都被訪問的話,那么內存中
應該有兩個dentry結構,但他們都指向唯一的一個inode結構
(1)struct dentry {
atomic_t d_count;
unsigned int d_flags;
struct inode * d_inode; /* Where the name belongs to - NULL is egative */
struct dentry * d_parent; /* parent directory */
struct list_head d_hash; /* 連接到dentry--hash表 */
struct list_head d_lru; /* 如果d_count = 0 連接到dentry_unused表 */
struct list_head d_child; /* 連接到上一層目錄的d_subdirs中 */
struct list_head d_subdirs; /* 連接下層子目錄 */
struct list_head d_alias; /* 連接到同一個inode的指針 */
int d_mounted;
struct qstr d_name;
unsigned long d_time; /* used by d_revalidate */
struct dentry_operations *d_op;
struct super_block * d_sb; /* The root of the dentry tree */
unsigned long d_vfs_flags;
void * d_fsdata; /* fs-specific data */
void * d_extra_attributes; /* TUX-specific data */
unsigned char d_iname[DNAME_INLINE_LEN]; /* small names */
};
struct qstr {
const unsigned char * name;
unsigned int len;
unsigned int hash;
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -