Function report |
Source Code:scripts\dtc\libfdt\fdt_sw.c |
Create Date:2022-07-28 06:19:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fdt_resize
Proto:int fdt_resize(void *fdt, void *buf, int bufsize)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | fdt | |
void * | buf | |
int | bufsize |
151 | headsize = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt) |
152 | tailsize = fdt_size_dt_strings(fdt) |
154 | If headsize + tailsize > fdt_totalsize(fdt) Then Return -"Can't happen" error indicating a bug in libfdt |
157 | If headsize + tailsize > bufsize Then Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists |
160 | oldtail = fdt + fdt_totalsize(fdt) - tailsize |
168 | Else |
173 | fdt_set_totalsize(buf, bufsize) |
174 | If fdt_off_dt_strings(buf) Then fdt_set_off_dt_strings(buf, bufsize) |
177 | 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 |