Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mnt_has_parent

Proto:static inline int mnt_has_parent(struct mount *mnt)

Type:int

Parameter:

TypeParameterName
struct mount *mnt
86  Return mnt != mnt_parent
Caller
NameDescribe
disconnect_mount
umount_treemount_lock must be held* namespace_sem must be held for write
do_move_mount
is_path_reachableReturn true if path is reachable from root* namespace_sem or mount_lock is held
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