函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:25
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_get_tree - Get the mountable root*@fc: The superblock configuration context.* The filesystem is invoked to get or create a superblock which can then later* be used for mounting. The filesystem places a pointer to the root to be

函数原型:int vfs_get_tree(struct fs_context *fc)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
1541  如果root则返回:负EBUSY
1547  error等于get_tree(fc)
1548  如果error小于0则返回:error
1551  如果非root
1552  打印错误信息("Filesystem %s get_tree() didn't set fc->root\n", name)
1557  BUG()
1560  sb等于d_sb
1561  WARN_ON(!s_bdi)
1569  smp_wmb()
1570  s_flags或等于SB_BORN
1572  error等于security_sb_set_mnt_opts(sb, security, 0, NULL)
1573  如果此条件成立可能性小(为编译器优化)(error)则
1574  fc_drop_locked(fc)
1575  返回:error
1584  WARN((s_maxbytes < 0), "%s set sb->s_maxbytes to negative value (%lld)\n", name, s_maxbytes)
1587  返回:0
调用者
名称描述
fc_mount
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree
vfs_fsconfig_lockedCheck the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning.