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

Name:fdt_finish

Proto:int fdt_finish(void *fdt)

Type:int

Parameter:

TypeParameterName
void *fdt
331  p = fdt
340  end = 'complete' state: Enter this state after fdt_finish()* Allowed functions: none
341  If Not end Then Return -FDT_ERR_EXISTS: Attempted to create a node or property which* already exists
343  end = cpu_to_fdt32(FDT_END)
346  oldstroffset = fdt_totalsize(fdt) - fdt_size_dt_strings(fdt)
347  newstroffset = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt)
348  Not static to avoid a conflict with the prototype in the Linux headers.
349  fdt_set_off_dt_strings(fdt, newstroffset)
352  offset = 0
353  When (tag = fdt_next_tag(fdt, offset, & nextoffset)) != FDT_END cycle
363  offset = nextoffset
365  If nextoffset < 0 Then Return nextoffset
369  fdt_set_totalsize(fdt, newstroffset + fdt_size_dt_strings(fdt))
372  fdt_set_last_comp_version(fdt, FDT_FIRST_SUPPORTED_VERSION)
373  fdt_set_magic(fdt, 4: version, 4: total size )
375  Return 0