Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:scripts\dtc\libfdt\fdt_ro.c Create Date:2022-07-28 06:18:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fdt_check_full

Proto:int fdt_check_full(const void *fdt, size_t bufsize)

Type:int

Parameter:

TypeParameterName
const void *fdt
size_tbufsize
840  nextoffset = 0
842  depth = 0
846  If bufsize < FDT_V1_SIZE Then Return -Error codes: codes for bad device tree blobs
848  err = fdt_check_header(fdt)
849  If err != 0 Then Return err
851  If bufsize < fdt_totalsize(fdt) Then Return -Error codes: codes for bad device tree blobs
854  num_memrsv = fdt_num_mem_rsv(fdt)
855  If num_memrsv < 0 Then Return num_memrsv
858  When 1 cycle
859  offset = nextoffset
860  tag = fdt_next_tag(fdt, offset, & nextoffset)
862  If nextoffset < 0 Then Return nextoffset
866  Case tag == p
867  Break
869  Case tag == FDT_END
872  Return 0
875  depth++
878  Break
880  Case tag == End node
883  depth--
884  Break
889  If Not prop Then Return err
891  Break
893  Default