Function report |
Source Code:scripts\dtc\libfdt\fdt.c |
Create Date:2022-07-28 06:18:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fdt_next_tag
Proto:uint32_t fdt_next_tag(const void *fdt, int startoffset, int *nextoffset)
Type:uint32_t
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | fdt | |
int | startoffset | |
int * | nextoffset |
130 | offset = startoffset |
134 | tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE) |
137 | tag = fdt32_to_cpu( * tagp) |
138 | offset += FDT_TAGSIZE |
142 | Case tag == Start node: full name |
151 | Case tag == Property: name off,size, content |
152 | lenp = fdt_offset_ptr(fdt, offset, size of lenp ) |
156 | offset += size of fdt_property - FDT_TAGSIZE + fdt32_to_cpu( * lenp) |
158 | If fdt_version(fdt) < 0x10 && fdt32_to_cpu( * lenp) >= 8 && (offset - fdt32_to_cpu( * lenp)) % 8 != 0 Then offset += 4 |
161 | Break |
166 | Break |
168 | Default |
169 | Return FDT_END |
172 | If Not fdt_offset_ptr(fdt, startoffset, offset - startoffset) Then Return FDT_END |
175 | nextoffset = FDT_TAGALIGN(offset) |
176 | Return tag |
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 |