ILD

pahtname lookup
2026-3-17
首先我们需要了解dentry和inode的基本知识,见参考文档。哪些地方会查找目录呢,入口1 执行stat()去读取一个文件的属性的时候,就需要查找到dentry。fs/stat.cvfs_statx() ->fs/namei.cfilename_lookup()2 打开文件fs/open.cdo_

dentry lifetime
2026-3-23
dentry有两个哈希表,一个是主哈希表,一个是in lookup哈希表。Alloc分配一个alloc,接口有:struct dentry *d_alloc(struct dentry * parent, const struct qstr *name)struct dentry *d_alloc_

dentry state
2026-4-22
struct dentry_stat定义在linux/include/linux/dcache.h,包含了dentry的一些信息。struct dentry_stat_t dentry_stat { int nr_dentry; int nr_unused; int a

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.