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

Name:fdt_property_placeholder

Proto:int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp)

Type:int

Parameter:

TypeParameterName
void *fdt
const char *name
intlen
void **valp
294  If sw_flags(fdt) & dt_create_with_flags flags Then
295  allocated = 1
296  nameoff = fdt_add_string_(fdt, name)
297  Else
298  nameoff = fdt_find_add_string_(fdt, name, & allocated)
300  If nameoff == 0 Then Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists
303  prop = 'complete' state: Enter this state after fdt_finish()* Allowed functions: none
304  If Not prop Then
305  If allocated Then Must only be used to roll back in case of error
307  Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists
310  tag = cpu_to_fdt32(Property: name off,size, content )
311  nameoff = cpu_to_fdt32(nameoff)
312  len = cpu_to_fdt32(len)
313  valp = data
314  Return 0