函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:add a mount into a namespace's mount tree

函数原型:static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags)

返回类型:int

参数:

类型参数名称
struct mount *newmnt
struct path *path
intmnt_flags
2706  mnt_flags与等于MNT_INTERNAL_FLAGS的反
2708  mp等于lock_mount(path)
2709  如果是错误则返回:错误
2712  parent等于real_mount(mnt)
2713  err等于负EINVAL
2714  如果此条件成立可能性小(为编译器优化)(!check_mnt(parent))则
2716  如果非mnt_flags按位与MNT_SHRINKABLE的值则转到:unlock
2719  如果非 containing namespace 则转到:unlock
2724  err等于负EBUSY
2725  如果mnt_sb恒等于 pointer to superblock mnt_root恒等于dentry则转到:unlock
2729  err等于负EINVAL
2730  如果d_is_symlink( root of the mounted tree )则转到:unlock
2733  mnt_flags等于mnt_flags
2734  err等于graft_tree(newmnt, parent, mp)
2736  unlock :
2737  unlock_mount(mp)
2738  返回:err
调用者
名称描述
do_new_mount_fcCreate a new mount using a superblock configuration and request it* be added to the namespace tree.
finish_automount