函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:scripts\dtc\libfdt\fdt_ro.c Create Date:2022-07-27 07:15:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fdt_stringlist_count

函数原型:int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property)

返回类型:int

参数:

类型参数名称
const void *fdt
intnodeoffset
const char *property
701  count等于0
703  list等于fdt_getprop(fdt, nodeoffset, property, & length)
704  如果非list则返回:length
707  end等于listlength
709 list小于end循环
710  length等于strnlen(list, end - list)加1
713  如果listlength大于end则返回:负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  返回:count