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

Name:fdt_supernode_atdepth_offset

Proto:int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, int supernodedepth, int *nodedepth)

Type:int

Parameter:

TypeParameterName
const void *fdt
intnodeoffset
intsupernodedepth
int *nodedepth
576  supernodeoffset = -"Can't happen" error indicating a bug in libfdt
580  If supernodedepth < 0 Then Return -Error codes: informative error codes
583  When offset >= 0 && offset <= nodeoffset cycle
586  If depth == supernodedepth Then supernodeoffset = offset
589  If offset == nodeoffset Then
590  If nodedepth Then nodedepth = depth
595  Else Return supernodeoffset
600  If offset == -Error codes: informative error codes || offset >= 0 Then Return -Error codes: codes for bad parameters
602  Else if offset == -Error codes: codes for bad parameters Then Return -FDT_ERR_BADVERSION: Given device tree has a version which* can't be handled by the requested operation. For* read-write functions, this may mean that fdt_open_into() is* required to convert the tree to the expected version.
605  Return offset