函数逻辑报告 |
Source Code:block\cmdline-parser.c |
Create Date:2022-07-27 19:37:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:parse_subpart
函数原型:static int parse_subpart(struct cmdline_subpart **subpart, char *partdef)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cmdline_subpart ** | subpart | |
| char * | partdef |
| 13 | ret等于0 |
| 16 | * subpart = NULL |
| 18 | new_subpart等于分配内存并置零 |
| 19 | 如果非new_subpart则返回:负ENOMEM |
| 22 | 如果partdef恒等于'-'则 |
| 25 | 否则 |
| 34 | 如果partdef恒等于'@'则 |
| 35 | partdef自加 |
| 37 | 否则 |
| 38 | from等于0ULL的反 |
| 41 | 如果partdef恒等于'('则 |
| 43 | next等于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 |
| 45 | 如果非next则 |
| 51 | length等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, next - partdef, partition name, such as 'rootfs' 的长度 - 1) |
| 54 | partition name, such as 'rootfs' [length]等于'\0' |
| 57 | 否则 partition name, such as 'rootfs' [0]等于'\0' |
| 60 | flags等于0 |
| 62 | 如果非字符串指定长度比较则 |
| 63 | flags或等于Device is read only |
| 64 | partdef加等于2 |
| 67 | 如果非字符串指定长度比较则 |
| 69 | partdef加等于2 |
| 72 | subpart等于new_subpart |
| 73 | 返回:0 |
| 74 | fail : |
| 75 | 释放内存 |
| 76 | 返回:ret |
| 名称 | 描述 |
|---|---|
| parse_parts |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |