| 函数逻辑报告 | 
| Source Code: fs\namespace.c | Create Date:2022-07-29 10:39:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:reate a new mount for userspace and request it to be added into the* namespace's tree
函数原型:static int do_new_mount(struct path *path, const char *fstype, int sb_flags, int mnt_flags, const char *name, void *data)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct path * | path | |
| const char * | fstype | |
| int | sb_flags | |
| int | mnt_flags | |
| const char * | name | |
| void * | data | 
| 2786 | const char * subtype = NULL | 
| 2787 | err等于0 | 
| 2792 | type等于get_fs_type(fstype) | 
| 2796 | 如果fs_flags按位与FS_HAS_SUBTYPE则 | 
| 2797 | subtype等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 2798 | 如果subtype则 | 
| 2808 | put_filesystem(type) | 
| 2812 | 如果subtype则err等于vfs_parse_fs_string(fc, "subtype", subtype, strlen - Find the length of a string*@s: The string to be sized) | 
| 2815 | 如果非err且name则err等于vfs_parse_fs_string(fc, "source", name, strlen - Find the length of a string*@s: The string to be sized) | 
| 2817 | 如果非err则err等于parse_monolithic_mount_data(fc, data) | 
| 2819 | 如果非err且非mount_capable(fc)则err等于负EPERM | 
| 2823 | 如果非err则err等于Create a new mount using a superblock configuration and request it* be added to the namespace tree. | 
| 2826 | put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of. | 
| 2827 | 返回:err | 
| 名称 | 描述 | 
|---|---|
| do_mount | Flags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc) | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |