函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mnt_already_visible

函数原型:static bool mnt_already_visible(struct mnt_namespace *ns, const struct super_block *sb, int *new_mnt_flags)

返回类型:bool

参数:

类型参数名称
struct mnt_namespace *ns
const struct super_block *sb
int *new_mnt_flags
3841  new_flags等于new_mnt_flags
3843  bool visible = false
3845  lock for reading
3850  如果s_type不等于s_type则继续下一循环
3856  如果 root of the mounted tree 不等于s_root则继续下一循环
3860  mnt_flags等于mnt_flags
3863  如果sb_rdonly( pointer to superblock )则mnt_flags或等于MNT_LOCK_READONLY
3869  如果mnt_flags按位与MNT_LOCK_READONLY且非new_flags按位与does the user want this to be r/o? 的值则继续下一循环
3872  如果mnt_flags按位与MNT_LOCK_ATIMEmnt_flags按位与MNT_ATIME_MASK的值不等于new_flags按位与MNT_ATIME_MASK的值则继续下一循环
3881  inode等于 Where the name belongs to - NULL is * negative
3883  如果非mnt_flags按位与MNT_LOCKED的值则继续下一循环
3886  如果非is_empty_dir_inode(inode)则转到:next
3891  new_mnt_flags或等于mnt_flags按位与MNT_LOCK_READONLY按位或MNT_LOCK_ATIME的值
3892  visible = true
3893  转到:found
3894  :
3896  found :
3897  lease a read lock
3898  返回:visible
调用者
名称描述
mount_too_revealing