函数逻辑报告

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_dotdot_rcu

函数原型:static int follow_dotdot_rcu(struct nameidata *nd)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
1353  inode等于 path.dentry.d_inode
1355  当1循环
1356  如果path_equal( & path, & root)则退出
1358  如果dentry不等于mnt_root
1359  old等于dentry
1367  dentry等于parent
1368  seq等于seq
1371  退出
1372  否则
1373  mnt等于real_mount(mnt)
1374  mparent等于mnt_parent
1380  如果mnt恒等于mnt退出
1383  dentry等于mountpoint
1384  mnt等于mnt
1385  inode等于inode2
1386  seq等于seq
1389 此条件成立可能性小(为编译器优化)(d_mountpoint(dentry))循环
1391  mounted等于__lookup_mnt(mnt, dentry)
1392  如果此条件成立可能性小(为编译器优化)(read_seqretry( & mount_lock, m_seq))则返回:负ECHILD
1394  如果非mounted退出
1396  mnt等于mnt
1397  dentry等于 root of the mounted tree
1398  inode等于d_inode
1399  seq等于ad_seqcount_begin - begin a seq-read critical section*@s: pointer to seqcount_t* Returns: count to be passed to read_seqcount_retry* read_seqcount_begin opens a read critical section of the given seqcount
1401  path.dentry.d_inode 等于inode
1402  返回:0
调用者
名称描述
handle_dots