函数逻辑报告

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

函数名称:change_mount_ro_state

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

返回类型:int

参数:

类型参数名称
struct mount *mnt
unsigned intmnt_flags
2445  readonly_request等于mnt_flags按位与does the user want this to be r/o?
2447  如果readonly_request恒等于__mnt_is_readonly: check whether a mount is read-only*@mnt: the mount to check for its write status* This shouldn't be used directly ouside of the VFS.* It does not guarantee that the filesystem will stay* r/w, just that it is right *now*. This can not and则返回:0
2450  如果readonly_request则返回:mnt_make_readonly(mnt)
2453  返回:__mnt_unmake_readonly(mnt)
调用者
名称描述
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).