Linux中关于dentry的弱智问题,求大侠高手来点拨下
土豆 2003-12-15 10:40:08 dentry中象d_hash,d_lru这样的列表,它的类型为
struct list_head {struct list_head *next, *prev;};
没有一个指向对象本身的指针,那在使用的时候如何根据d_hash找到对象自己?
我的意思是,我觉得lish_head应该有个象owner一样的指针,在初始化的时候将其指向自己
dentry* entry = d_alloc(……..);
entry->d_hash->owner = entry;
这样,在后面的使用中才可以通过ower得到entry本身
小弟没搞懂,哪个懂的来点拨下,为什么没有实现这样的机制?