默默的一块石头
发布时间:2019-08-07 16:46:33
其中struct vfsmount 里面包含了底层文件系统的挂载点的 dentry 和 super block。通过 super block 和 dentry 结构,我们能获得操作底层文件系统的方法。......
发布时间:2019-08-06 16:05:55
struct fs_struct { int users; spinlock_t lock; seqcount_t seq; int umask; int in_exec; struct path root, pwd;};struct path { struct vfsmount *mnt; struct dentry *dentry;};//创建进程过程static int copy_fs(unsigned long clone_flags, struct task_struct *tsk){ struct fs_struct *fs = cur.........
发布时间:2019-08-05 17:05:11
/* * name resolution. * this is the basic name resolution function, turning a pathname into * the final dentry. we expect 'base' to be positive and a directory. * * returns 0 and nd will have valid dentry and mnt on success. * returns error and drops reference to .........
发布时间:2019-05-20 16:13:37
#define nr_open_default bits_per_longstruct fdtable { unsigned int max_fds; struct file __rcu **fd; /* current fd array */ unsigned long *close_on_exec; unsigned long *open_fds; struct rcu_head rcu;};/* open file table structure */struct files_struct {&nbs.........
发布时间:2019-05-06 21:29:40
struct nameidata { struct path path; struct qstr last; struct path root; struct inode *inode; /* path.dentry.d_inode */ unsigned int flags; unsigned seq, m_seq; int last_type; unsigned depth; char *saved_names[max_nested_links 1];};......