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

Name:fdt_get_name

Proto:const char *fdt_get_name(const void *fdt, int nodeoffset, int *len)

Type:char

Parameter:

TypeParameterName
const void *fdt
intnodeoffset
int *len
287  nh = fdt_offset_ptr_(fdt, nodeoffset)
291  If (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 Then Go to fail
295  nameptr = name
297  If fdt_version(fdt) < 0x10 Then
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  If (leaf == NULL) Then
307  Go to fail
309  nameptr = leaf + 1
312  If len Then len = strlen(nameptr)
315  Return nameptr
317  fail :
318  If len Then len = err
320  Return NULL
Caller
NameDescribe
fdt_nodename_eq_