函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_get_super - Get a superblock with a search key set in s_fs_info.*@fc: The filesystem context holding the parameters*@keying: How to distinguish superblocks*@fill_super: Helper to initialise a new superblock

函数原型:int vfs_get_super(struct fs_context *fc, enum vfs_get_super_keying keying, int (*fill_super)(struct super_block *sb, struct fs_context *fc))

返回类型:int

参数:

类型参数名称
struct fs_context *fc
enum vfs_get_super_keyingkeying
int (*fill_super
1167  int( * test)(struct super_block * , struct fs_context * )
1172  :keying恒等于Only one such superblock may exist
1173  :keying恒等于As above, but reconfigure if it exists
1174  test等于test_single_super
1175  退出
1176  :keying恒等于Superblocks with different s_fs_info keys may exist
1177  test等于test_keyed_super
1178  退出
1179  :keying恒等于Multiple independent superblocks may exist
1180  test = NULL
1181  退出
1182  默认
1183  BUG()
1186  sb等于sget_fc - Find or create a superblock*@fc: Filesystem context
1187  如果是错误则返回:错误
1190  如果非s_root
1191  err等于fill_super(sb, fc)
1192  如果err则转到:error
1195  s_flags或等于SB_ACTIVE
1196  root等于获得目录项引用
1197  否则
1198  root等于获得目录项引用
1201  如果err小于0则
1202  dput(root)
1203  root = NULL
1204  转到:error
1209  返回:0
1211  error :
1212  deactivate_locked_super - drop an active reference to superblock*@s: superblock to deactivate* Drops an active reference to superblock, converting it into a temporary* one if there is no other active references left
1213  返回:err
调用者
名称描述
get_tree_nodev
get_tree_single
get_tree_single_reconf
get_tree_keyed