函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Handle 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).

函数原型:static int do_reconfigure_mnt(struct path *path, unsigned int mnt_flags)

返回类型:int

参数:

类型参数名称
struct path *path
unsigned intmnt_flags
2498  sb等于mnt_sb
2499  mnt等于real_mount(mnt)
2502  如果非check_mnt(mnt)则返回:负EINVAL
2505  如果dentry不等于 root of the mounted tree 则返回:负EINVAL
2508  如果非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.则返回:负EPERM
2511  lock for writing
2512  ret等于change_mount_ro_state(mnt, mnt_flags)
2513  如果ret恒等于0则Update the user-settable attributes on a mount. The caller must hold* sb->s_umount for writing.
2515  lease a write lock
2517  mnt_warn_timestamp_expiry(path, & mnt)
2519  返回:ret
调用者
名称描述
do_mountFlags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)