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:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fdt_add_string_

Proto:static int fdt_add_string_(void *fdt, const char *s)

Type:int

Parameter:

TypeParameterName
void *fdt
const char *s
244  strtab = fdt + fdt_totalsize(fdt)
245  strtabsize = fdt_size_dt_strings(fdt)
246  len = strlen(s) + 1
249  offset = -strtabsize - len
250  struct_top = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt)
251  If fdt_totalsize(fdt) + offset < struct_top Then Return 0
254  No 3D Now!(strtab + offset, s, len)
255  fdt_set_size_dt_strings(fdt, strtabsize + len)
256  Return offset