函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fdt_finish

函数原型:int fdt_finish(void *fdt)

返回类型:int

参数:

类型参数名称
void *fdt
331  p等于fdt
340  end等于'complete' state: Enter this state after fdt_finish()* Allowed functions: none
341  如果非end则返回:负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 tag等于fdt_next_tag(fdt, offset, & nextoffset)不等于FDT_END循环
354  如果tag恒等于Property: name off,size, content
363  offset等于nextoffset
365  如果nextoffset小于0则返回: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  返回:0
调用者
名称描述
fdt_create_empty_tree