函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fdt_get_name

函数原型:const char *fdt_get_name(const void *fdt, int nodeoffset, int *len)

返回类型:char

参数:

类型参数名称
const void *fdt
intnodeoffset
int *len
287  nh等于fdt_offset_ptr_(fdt, nodeoffset)
291  如果err等于Minimal sanity check for a read-only tree. fdt_ro_probe_() checks* that the given buffer contains what appears to be a flattened* device tree with sane information in its header.不等于0或err等于fdt_check_node_offset_(fdt, nodeoffset)小于0则转到:fail
295  nameptr等于name
297  如果fdt_version(fdt)小于0x10则
304  leaf等于strrchr - Find the last occurrence of a character in a string*@s: The string to be searched*@c: The character to search for
305  如果(leaf == NULL)则
307  转到:fail
309  nameptr等于leaf加1
312  如果lenlen等于strlen(nameptr)
315  返回:nameptr
317  fail :
318  如果lenlen等于err
320  返回:NULL
调用者
名称描述
fdt_nodename_eq_
fdt_get_path
fdt_set_name