Function report |
Source Code:fs\super.c |
Create Date:2022-07-28 20:02:25 |
| Last Modify:2022-05-24 06:42:17 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sget_fc - Find or create a superblock*@fc: Filesystem context
Proto:struct super_block *sget_fc(struct fs_context *fc, int (*test)(struct super_block *, struct fs_context *), int (*set)(struct super_block *, struct fs_context *))
Type:struct super_block
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct fs_context * | fc | |
| int (* | test | |
| int (* | set |
| 515 | struct super_block * s = NULL |
| 517 | user_ns = If global Then userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ? Else user_ns |
| 520 | retry : |
| 522 | If test Then |
| 524 | If test(old, fc) Then Go to share_extant_sb |
| 528 | If Not s Then |
| 529 | spin_unlock( & sb_lock) |
| 533 | Go to retry |
| 538 | If err Then |
| 539 | s_fs_info = NULL |
| 540 | spin_unlock( & sb_lock) |
| 544 | s_fs_info = NULL |
| 549 | hlist_add_head( & s_instances, & fs_supers) |
| 550 | spin_unlock( & sb_lock) |
| 551 | get_filesystem(s_type) |
| 552 | register_shrinker_prepared( & s_shrink) |
| 553 | Return s |
| 555 | share_extant_sb : |
| 557 | spin_unlock( & sb_lock) |
| 564 | Return old |
| Name | Describe |
|---|---|
| vfs_get_super | 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 |
| get_tree_bdev | get_tree_bdev - Get a superblock based on a single block device*@fc: The filesystem context holding the parameters*@fill_super: Helper to initialise a new superblock |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |