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

Name:fdt_stringlist_get

Proto:const char *fdt_stringlist_get(const void *fdt, int nodeoffset, const char *property, int idx, int *lenp)

Type:char

Parameter:

TypeParameterName
const void *fdt
intnodeoffset
const char *property
intidx
int *lenp
760  list = fdt_getprop(fdt, nodeoffset, property, & length)
761  If Not list Then
762  If lenp Then lenp = length
765  Return NULL
768  end = list + length
770  When list < end cycle
771  length = strnlen(list, end - list) + 1
774  If list + length > end Then
778  Return NULL
781  If idx == 0 Then
782  If lenp Then lenp = length - 1
785  Return list
788  list += length
789  idx--
792  If lenp Then lenp = -Error codes: informative error codes
795  Return NULL