函数逻辑报告

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

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

函数原型:static int do_remount(struct path *path, int ms_flags, int sb_flags, int mnt_flags, void *data)

返回类型:int

参数:

类型参数名称
struct path *path
intms_flags
intsb_flags
intmnt_flags
void *data
2531  sb等于mnt_sb
2532  mnt等于real_mount(mnt)
2535  如果非check_mnt(mnt)则返回:负EINVAL
2538  如果dentry不等于mnt_root则返回:负EINVAL
2541  如果非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
2544  fc等于fs_context_for_reconfigure(dentry, sb_flags, Superblock flags that can be altered by MS_REMOUNT)
2545  如果是错误则返回:错误
2548  err等于parse_monolithic_mount_data(fc, data)
2549  如果非err
2550  lock for writing
2551  err等于负EPERM
2557  lease a write lock
2560  mnt_warn_timestamp_expiry(path, & mnt)
2562  put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
2563  返回:err
调用者
名称描述
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)