函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mnt_ns_loop

函数原型:static bool mnt_ns_loop(struct dentry *dentry)

返回类型:bool

参数:

类型参数名称
struct dentry *dentry
1742  如果非is_mnt_ns_file(dentry)则返回:false
1745  mnt_ns等于to_mnt_ns(get_proc_ns( Where the name belongs to - NULL is * negative ))
1746  返回:seq大于等于 Sequence number to prevent loops
调用者
名称描述
do_loopbackdo loopback mount.
check_for_nsfs_mountsCheck that there aren't references to earlier/same mount namespaces in the* specified subtree. Such references can act as pins for mount namespaces* that aren't checked by the mount-cycle checking code, thereby allowing* cycles to be made.