Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fdt_next_node

Proto:int fdt_next_node(const void *fdt, int offset, int *depth)

Type:int

Parameter:

TypeParameterName
const void *fdt
intoffset
int *depth
199  nextoffset = 0
202  If offset >= 0 Then If (nextoffset = fdt_check_node_offset_(fdt, offset)) < 0 Then
204  Return nextoffset
206  Do
207  offset = nextoffset
208  tag = fdt_next_tag(fdt, offset, & nextoffset)
211  Case tag == Property: name off,size, content
212  Case tag == p
213  Break
216  If depth Then depth++
218  Break
220  Case tag == End node
221  If depth && --depth < 0 Then Return nextoffset
223  Break
225  Case tag == FDT_END
229  Else Return nextoffset
232  When tag != Start node: full name cycle
234  Return offset