Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return true if path is reachable from root* namespace_sem or mount_lock is held

Proto:bool is_path_reachable(struct mount *mnt, struct dentry *dentry, const struct path *root)

Type:bool

Parameter:

TypeParameterName
struct mount *mnt
struct dentry *dentry
const struct path *root
3568  When mnt != mnt && mnt_has_parent(mnt) cycle
3569  dentry = mnt_mountpoint
3570  mnt = mnt_parent
3572  Return mnt == mnt && is new dentry a subdirectory of old_dentry
Caller
NameDescribe
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