Function report |
Source Code:scripts\dtc\libfdt\fdt_ro.c |
Create Date:2022-07-28 06:18:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fdt_check_full
Proto:int fdt_check_full(const void *fdt, size_t bufsize)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | fdt | |
size_t | bufsize |
840 | nextoffset = 0 |
842 | depth = 0 |
846 | If bufsize < FDT_V1_SIZE Then Return -Error codes: codes for bad device tree blobs |
848 | err = fdt_check_header(fdt) |
851 | If bufsize < fdt_totalsize(fdt) Then Return -Error codes: codes for bad device tree blobs |
854 | num_memrsv = fdt_num_mem_rsv(fdt) |
855 | If num_memrsv < 0 Then Return num_memrsv |
858 | When 1 cycle |
859 | offset = nextoffset |
860 | tag = fdt_next_tag(fdt, offset, & nextoffset) |
862 | If nextoffset < 0 Then Return nextoffset |
867 | Break |
872 | Return 0 |
874 | Case tag == Start node: full name |
875 | depth++ |
878 | Break |
883 | depth-- |
884 | Break |
886 | Case tag == Property: name off,size, content |
891 | Break |
893 | Default |
894 | Return -"Can't happen" error indicating a bug in libfdt |
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 |