Function report |
Source Code:fs\super.c |
Create Date:2022-07-28 20:02:26 |
| Last Modify:2022-05-24 06:42:17 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:find or create a superblock
Proto:struct super_block *sget(struct file_system_type *type, int (*test)(struct super_block *, void *), int (*set)(struct super_block *, void *), int flags, void *data)
Type:struct super_block
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file_system_type * | type | |
| int (* | test | |
| int (* | set | |
| int | flags | |
| void * | data |
| 582 | user_ns = current_user_ns() |
| 583 | struct super_block * s = NULL |
| 591 | If flags & These sb flags are internal to the kernel Then user_ns = userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ? |
| 594 | retry : |
| 596 | If test Then |
| 601 | spin_unlock( & sb_lock) |
| 608 | Return old |
| 611 | If Not s Then |
| 612 | spin_unlock( & sb_lock) |
| 616 | Go to retry |
| 620 | If err Then |
| 621 | spin_unlock( & sb_lock) |
| 628 | hlist_add_head( & s_instances, & fs_supers) |
| 629 | spin_unlock( & sb_lock) |
| 630 | get_filesystem(type) |
| 631 | register_shrinker_prepared( & s_shrink) |
| 632 | Return s |
| Name | Describe |
|---|---|
| mount_bdev | |
| mount_nodev | |
| mount_single |
| 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 |