函数逻辑报告 |
Source Code:scripts\dtc\libfdt\fdt.c |
Create Date:2022-07-27 07:15:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:fdt_check_header
函数原型:int fdt_check_header(const void *fdt)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const void * | fdt |
| 72 | 如果fdt_magic(fdt)不等于4: version, 4: total size 则返回:负FDT_ERR_TRUNCATED: FDT or a sub-block is improperly* terminated (overflows, goes outside allowed bounds, or* isn't properly terminated). |
| 74 | hdrsize等于fdt_header_size(fdt) |
| 78 | 如果fdt_version(fdt)小于fdt_last_comp_version(fdt)则返回:负FDT_ERR_BADMAGIC: Given "device tree" appears not to be a* device tree at all - it is missing the flattened device* tree magic number. |
| 81 | 如果fdt_totalsize(fdt)小于hdrsize或fdt_totalsize(fdt)大于INT_MAX则返回:负Error codes: codes for bad device tree blobs |
| 86 | 如果非check_off_(hdrsize, fdt_totalsize(fdt), fdt_off_mem_rsvmap(fdt))则返回:负Error codes: codes for bad device tree blobs |
| 90 | 如果fdt_version(fdt)小于17则 |
| 94 | 否则 |
| 102 | 如果非check_block_(hdrsize, fdt_totalsize(fdt), fdt_off_dt_strings(fdt), fdt_size_dt_strings(fdt))则返回:负Error codes: codes for bad device tree blobs |
| 106 | 返回:0 |
| 名称 | 描述 |
|---|---|
| fdt_check_full |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |