linux文件系统
... ...
RT-2022
这个作者很懒,什么都没留下…
展开
-
linux文件系统--file
file 定义 struct file 表示一个打开的文件,其定义如下: struct file { union { struct llist_node fu_llist; struct rcu_head fu_rcuhead; } f_u; struct path f_path; struct inode *f_inode; /* cached value */ const struct file_operations *f_op; spinlock_t f_lock; e原创 2022-03-19 14:45:20 · 110 阅读 · 0 评论 -
linux文件系统--inode
inode定义 linux文件系统中的inode结构用于描述一个文件,包含文件大小、文件属性、文件状态等信息,其定义如下: struct inode { umode_t i_mode; unsigned short i_opflags; kuid_t i_uid; kgid_t i_gid; unsigned int i_flags; const struct inode_operations *i_op; struct super_block *i_sb; struct原创 2022-03-09 16:33:42 · 1460 阅读 · 0 评论 -
文件系统--register
接口函数: int register_filesystem(struct file_system_type * fs) { int res = 0; struct file_system_type ** p; if (fs->parameters && !fs_validate_description(fs->name, fs->parameters)) return -EINVAL; BUG_ON(strchr(fs->name, '.')原创 2022-03-03 20:20:43 · 293 阅读 · 0 评论