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

Name:fdt_create_with_flags

Proto:int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags)

Type:int

Parameter:

TypeParameterName
void *buf
intbufsize
uint32_tflags
107  hdrsize = FDT_ALIGN(sizeof(structfdt_header), sizeof(structfdt_reserve_entry))
109  fdt = buf
111  If bufsize < hdrsize Then Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists
114  If flags & ~FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property* names in the fdt. This can result in faster creation times, but* a larger fdt. Then Return -FDT_ERR_NOPHANDLES: The device tree doesn't have any* phandle available anymore without causing an overflow
117  memset(buf, 0, bufsize)
126  fdt_set_magic(fdt, FDT_SW_MAGIC)
127  fdt_set_version(fdt, FDT_LAST_SUPPORTED_VERSION)
128  fdt_set_last_comp_version(fdt, flags)
130  fdt_set_totalsize(fdt, bufsize)
132  fdt_set_off_mem_rsvmap(fdt, hdrsize)
133  fdt_set_off_dt_struct(fdt, fdt_off_mem_rsvmap(fdt))
134  fdt_set_off_dt_strings(fdt, 0)
136  Return 0