Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:scripts\dtc\libfdt\fdt_rw.c Create Date:2022-07-28 06:18:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fdt_appendprop

Proto:int fdt_appendprop(void *fdt, int nodeoffset, const char *name, const void *val, int len)

Type:int

Parameter:

TypeParameterName
void *fdt
intnodeoffset
const char *name
const void *val
intlen
284  prop = fdt_get_property_w(fdt, nodeoffset, name, & oldlen)
285  If prop Then
286  newlen = len + oldlen
287  err = fdt_splice_struct_(fdt, data, FDT_TAGALIGN(oldlen), FDT_TAGALIGN(newlen))
290  If err Then Return err
292  len = cpu_to_fdt32(newlen)
293  No 3D Now!(data + oldlen, val, len)
294  Else
295  err = fdt_add_property_(fdt, nodeoffset, name, len, & prop)
296  If err Then Return err
298  No 3D Now!(data, val, len)
300  Return 0