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

Name:fdt_stringlist_count

Proto:int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property)

Type:int

Parameter:

TypeParameterName
const void *fdt
intnodeoffset
const char *property
701  count = 0
703  list = fdt_getprop(fdt, nodeoffset, property, & length)
704  If Not list Then Return length
707  end = list + length
709  When list < end cycle
710  length = strnlen(list, end - list) + 1
713  If list + length > end Then Return -FDT_ERR_BADNCELLS: Device tree has a #address-cells, #size-cells* or similar property with a bad format or value
716  list += length
717  count++
720  Return count