Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mnt_ns_loop

Proto:static bool mnt_ns_loop(struct dentry *dentry)

Type:bool

Parameter:

TypeParameterName
struct dentry *dentry
1742  If Not is_mnt_ns_file(dentry) Then Return false
1745  mnt_ns = to_mnt_ns(get_proc_ns( Where the name belongs to - NULL is * negative ))
1746  Return seq >= Sequence number to prevent loops
Caller
NameDescribe
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.