函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return true if path is reachable from root* namespace_sem or mount_lock is held

函数原型:bool is_path_reachable(struct mount *mnt, struct dentry *dentry, const struct path *root)

返回类型:bool

参数:

类型参数名称
struct mount *mnt
struct dentry *dentry
const struct path *root
3568 mnt不等于mntmnt_has_parent(mnt)循环
3569  dentry等于mnt_mountpoint
3570  mnt等于mnt_parent
3572  返回:mnt恒等于mnt是子目录
调用者
名称描述
path_is_under
SYSCALL_DEFINE2pivot_root Semantics:* Moves the root file system of the current process to the directory put_old,* makes new_root as the new root file system of the current process, and sets* root/cwd of all processes which had them on the current root to new_root
get_peer_under_root