函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mnt_has_parent

函数原型:static inline int mnt_has_parent(struct mount *mnt)

返回类型:int

参数:

类型参数名称
struct mount *mnt
86  返回:mnt不等于mnt_parent
调用者
名称描述
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