函数逻辑报告 |
Source Code:init\do_mounts.c |
Create Date:2022-07-27 15:19:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:devt_from_partuuid - looks up the dev_t of a partition by its UUID*@uuid_str: char array containing ascii UUID* The function will return the first partition which contains a matching* UUID value in its partition_meta_info struct. This does not search
函数原型:static dev_t devt_from_partuuid(const char *uuid_str)
返回类型:dev_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const char * | uuid_str |
| 110 | res等于0 |
| 115 | offset等于0 |
| 116 | bool clear_root_wait = false |
| 121 | slash等于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 |
| 123 | 如果slash则 |
| 124 | c等于0 |
| 128 | clear_root_wait = true |
| 129 | 转到:done |
| 132 | 否则 |
| 136 | 如果非len则 |
| 137 | clear_root_wait = true |
| 138 | 转到:done |
| 152 | res等于0 |
| 153 | disk等于part_to_disk(dev_to_part(dev)) |
| 154 | part等于disk_get_part(disk, partno + offset) |
| 155 | 如果part则 |
| 157 | put_device(part_to_dev(part)) |
| 160 | no_offset : |
| 161 | put_device(dev) |
| 162 | done : |
| 163 | 如果clear_root_wait则 |
| 164 | 打印错误信息("VFS: PARTUUID= is invalid.\nExpected PARTUUID=<valid-uuid-id>[/PARTNROFF=%%d]\n") |
| 168 | root_wait等于0 |
| 170 | 返回:res |
| 名称 | 描述 |
|---|---|
| name_to_dev_t | Convert a name into device number |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |