函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:path_connected - Verify that a path->dentry is below path->mnt.mnt_root*@path: nameidate to verify* Rename can sometimes move a file or directory outside of a bind* mount, path_connected allows those cases to be detected.

函数原型:static bool path_connected(const struct path *path)

返回类型:bool

参数:

类型参数名称
const struct path *path
562  mnt等于mnt
563  sb等于 pointer to superblock
566  如果非s_iflags按位与Multiple roots to the dentry tree 的值且 root of the mounted tree 恒等于s_root则返回:true
569  返回:是子目录
调用者
名称描述
follow_dotdot_rcu
path_parent_directory