函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Don't allow locked mount flags to be cleared.* No locks need to be held here while testing the various MNT_LOCK* flags because those flags can never be cleared once they are set.

函数原型:static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags)

返回类型:bool

参数:

类型参数名称
struct mount *mnt
unsigned intmnt_flags
2418  fl等于mnt_flags
2420  如果fl按位与MNT_LOCK_READONLY且非mnt_flags按位与does the user want this to be r/o? 的值则返回:false
2424  如果fl按位与MNT_LOCK_NODEV且非mnt_flags按位与MNT_NODEV的值则返回:false
2428  如果fl按位与MNT_LOCK_NOSUID且非mnt_flags按位与MNT_NOSUID的值则返回:false
2432  如果fl按位与MNT_LOCK_NOEXEC且非mnt_flags按位与MNT_NOEXEC的值则返回:false
2436  如果fl按位与MNT_LOCK_ATIMEfl按位与MNT_ATIME_MASK的值不等于mnt_flags按位与MNT_ATIME_MASK的值则返回:false
2440  返回:true
调用者
名称描述
do_reconfigure_mntHandle reconfiguration of the mountpoint only without alteration of the* superblock it refers to. This is triggered by specifying MS_REMOUNT|MS_BIND* to mount(2).
do_remounthange filesystem flags. dir should be a physical root of filesystem.* If you've mounted a non-root directory somewhere and want to do remount* on it - tough luck.