函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rsively change the type of the mountpoint.

函数原型:static int do_change_type(struct path *path, int ms_flags)

返回类型:int

参数:

类型参数名称
struct path *path
intms_flags
2205  mnt等于real_mount(mnt)
2206  recurse等于ms_flags按位与MS_REC
2208  err等于0
2210  如果dentry不等于mnt_root则返回:负EINVAL
2213  type等于Sanity check the flags to change_mnt_propagation.
2214  如果非type则返回:负EINVAL
2217  namespace_lock()
2218  如果type恒等于change to shared
2219  err等于invent_group_ids(mnt, recurse)
2220  如果err则转到:out_unlock
2224  lock_mount_hash()
2225 m循环vfsmount lock must be held for write
2227  unlock_mount_hash()
2229  out_unlock :
2230  namespace_unlock()
2231  返回: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)