函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:scripts\dtc\libfdt\fdt_sw.c Create Date:2022-07-27 07:16:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fdt_resize

函数原型:int fdt_resize(void *fdt, void *buf, int bufsize)

返回类型:int

参数:

类型参数名称
void *fdt
void *buf
intbufsize
151  headsize等于fdt_off_dt_struct(fdt)加fdt_size_dt_struct(fdt)
152  tailsize等于fdt_size_dt_strings(fdt)
154  如果headsizetailsize大于fdt_totalsize(fdt)则返回:负"Can't happen" error indicating a bug in libfdt
157  如果headsizetailsize大于bufsize则返回:负FDT_ERR_EXISTS: Attempted to create a node or property which* already exists
160  oldtail等于fdtfdt_totalsize(fdt)减tailsize
161  newtail等于bufbufsizetailsize
165  如果buf小于等于fdt
166  Not static to avoid a conflict with the prototype in the Linux headers.
167  Not static to avoid a conflict with the prototype in the Linux headers.
168  否则
169  Not static to avoid a conflict with the prototype in the Linux headers.
170  Not static to avoid a conflict with the prototype in the Linux headers.
173  fdt_set_totalsize(buf, bufsize)
174  如果fdt_off_dt_strings(buf)则fdt_set_off_dt_strings(buf, bufsize)
177  返回:0