函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:34:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Follow down to the covering mount currently visible to userspace. At each* point, the filesystem owning that dentry may be queried as to whether the* caller is permitted to proceed or not.

函数原型:int follow_down(struct path *path)

返回类型:int

参数:

类型参数名称
struct path *path
1415 managed等于READ_ONCE( protected by d_lock ), 此条件成立可能性小(为编译器优化)(managed & DCACHE_MANAGED_DENTRY)循环
1427  如果managed按位与manage transit from this dirent
1428  BUG_ON(!d_op)
1429  BUG_ON(!d_manage)
1430  ret等于d_manage(path, false)
1431  如果ret小于0则返回:如果ret恒等于负EISDIR则0否则ret
1436  如果managed按位与s a mountpoint
1437  mounted等于lookup_mnt(path)
1438  如果非mounted退出
1440  dput(dentry)
1441  mntput(mnt)
1442  mnt等于mounted
1444  继续下一循环
1448  退出
1450  返回:0