文件系统相关数据结构
2018-05-17 18:01:54 14 举报
克隆不点赞,最没素质!!! linux文件系统相关数据结构,觉得有用请点赞哦。
作者其他创作
大纲/内容
buffer 1K
...
instance of dentry\"/mnt/usb/sda1/idea.txt\"
struct buffer_head *b_this_page
struct inode *host
instance of buffer_head
struct path root
instance of inode\"/\"的inode
struct page *b_page
fd_array[0]
struct path f_path
-或.成员访问运算符
instance of super_blockvfat 分区3
struct dentry *dentry;
inode缓冲区
instance of inode
struct hlist_node\ts_instances
fd_array[1]
struct inode *d_inode
instance of file_system_type\"其他文件系统\"
current为当前进程的task_strcut
结构体变量
struct file_system_type *next
buffer 1K(常见大小)
instance of dentry\"/\"
struct backing_dev_info *s_bdi
struct hlist_head fs_supers
同一个文件系统类型的所有super block构成双向链表
page 4K
instance of super_blockvfat 分区1
instance of super_blockvfat 分区2
instance of file_system_type\"ext4\"
物理layout
图例
instance of bdi_writeback
instance of page
instance of task_structcurrent
instance of backing_dev_info
struct address_space *f_mapping
instance of path
struct fs_struct *fs
buffer/块缓冲区
instance of files_struct
dentry缓冲区
instance of address_space
struct super_block *i_sb
struct file_system_type *s_type
instance of radix_tree_root管理存储这个文件的所有page
struct path pwd
struct address_space *mapping
一个page内部的buffer构成单向循环链表
struct bdi_writeback wb
instance of file_system_type\"vfat\"
instance of fs_struct
假设此文件占用了2个page
struct fdtable fdtab
结构体成员
struct inode *f_inode
struct fdtable __rcu *fdt
struct file * fd_array[...]
struct file_system_type*file_systems
instance of file
struct files_struct *files
struct address_space *i_mapping
struct radix_tree_root\tpage_tree
struct backing_dev_info *bdi
struct dentry *dentry
instance of super_block\"ext4\"
0 条评论
下一页