摘要: open系统调用flow之do_last() 本文章来分析下open file系统调用最后一个主要的函数do_last() open系统调用来到do_last()时,主要看其nd参数,这个结构体里的path、last成员,此时的path表示open file完整路径最低一级路径,last表示open 阅读全文
posted @ 2021-12-26 21:57 aspirs 阅读(594) 评论(0) 推荐(1)
摘要: vfs open系统调用flow之link_path_walk() do_filp_open()里将pathname保存到nameidata里,pathname是open file的完整路径名,调用path_openat,此时是flags是带了LOOKUP_RCU flag的 struct file 阅读全文
posted @ 2021-12-26 18:52 aspirs 阅读(1071) 评论(0) 推荐(0)
摘要: vfs open系统调用flow之具体文件系统lookup(ext4 fs lookup) ext4_lookup static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsigned int fla 阅读全文
posted @ 2021-12-26 18:10 aspirs 阅读(1105) 评论(0) 推荐(0)