函数逻辑报告

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_search

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

返回类型:int

参数:

类型参数名称
const void *fdt
intnodeoffset
const char *property
const char *string
726  idx等于0
729  list等于fdt_getprop(fdt, nodeoffset, property, & length)
730  如果非list则返回:length
733  len等于strlen(string)加1
734  end等于listlength
736 list小于end循环
737  length等于strnlen(list, end - list)加1
740  如果listlength大于end则返回:负FDT_ERR_BADNCELLS: Device tree has a #address-cells, #size-cells* or similar property with a bad format or value
743  如果length恒等于lenmemcmp(list, string, length)恒等于0则返回:idx
746  list加等于length
747  idx自加
750  返回:负Error codes: informative error codes