Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:fdt_resize

Proto:int fdt_resize(void *fdt, void *buf, int bufsize)

Type:int

Parameter:

TypeParameterName
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  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
161  newtail = buf + bufsize - tailsize
165  If buf <= fdt Then
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  Else
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  If fdt_off_dt_strings(buf) Then fdt_set_off_dt_strings(buf, bufsize)
177  Return 0