函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fdt_appendprop

函数原型:int fdt_appendprop(void *fdt, int nodeoffset, const char *name, const void *val, int len)

返回类型:int

参数:

类型参数名称
void *fdt
intnodeoffset
const char *name
const void *val
intlen
284  prop等于fdt_get_property_w(fdt, nodeoffset, name, & oldlen)
285  如果prop
286  newlen等于lenoldlen
287  err等于fdt_splice_struct_(fdt, data, FDT_TAGALIGN(oldlen), FDT_TAGALIGN(newlen))
290  如果err则返回:err
292  len等于cpu_to_fdt32(newlen)
293  内存复制(data + oldlen, val, len)
294  否则
295  err等于fdt_add_property_(fdt, nodeoffset, name, len, & prop)
296  如果err则返回:err
298  内存复制(data, val, len)
300  返回:0
调用者
名称描述
fdt_appendprop_u32dt_appendprop_u32 - append a 32-bit integer value to a property*@fdt: pointer to the device tree blob*@nodeoffset: offset of the node whose property to change*@name: name of the property to change*@val: 32-bit integer value to append to the property
fdt_appendprop_u64dt_appendprop_u64 - append a 64-bit integer value to a property*@fdt: pointer to the device tree blob*@nodeoffset: offset of the node whose property to change*@name: name of the property to change*@val: 64-bit integer value to append to the property