Function report |
Source Code:scripts\dtc\libfdt\fdt_rw.c |
Create Date:2022-07-28 06:18:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fdt_open_into
Proto:int fdt_open_into(const void *fdt, void *buf, int bufsize)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | fdt | |
void * | buf | |
int | bufsize |
406 | fdtend = fdtstart + fdt_totalsize(fdt) |
411 | mem_rsv_size = (fdt_num_mem_rsv(fdt) + 1) * sizeof(structfdt_reserve_entry) |
414 | If fdt_version(fdt) >= 17 Then |
415 | struct_size = fdt_size_dt_struct(fdt) |
416 | Else |
417 | struct_size = 0 |
418 | When fdt_next_tag(fdt, struct_size, & struct_size) != FDT_END cycle |
420 | If struct_size < 0 Then Return struct_size |
424 | If Not fdt_blocks_misordered_(fdt, mem_rsv_size, struct_size) Then |
436 | newsize = FDT_ALIGN(sizeof(structfdt_header), 8) + mem_rsv_size + struct_size + fdt_size_dt_strings(fdt) |
439 | If bufsize < newsize Then Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists |
448 | If tmp + newsize > buf + bufsize Then Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists |
452 | fdt_packblocks_(fdt, tmp, mem_rsv_size, struct_size) |
456 | fdt_set_totalsize(buf, bufsize) |
457 | fdt_set_version(buf, 17) |
458 | fdt_set_last_comp_version(buf, 16) |
461 | Return 0 |
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 |