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

Name:fdt_getprop_by_offset

Proto:const void *fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp)

Type:void

Parameter:

TypeParameterName
const void *fdt
intoffset
const char **namep
int *lenp
457  prop = fdt_get_property_by_offset_(fdt, offset, lenp)
458  If Not prop Then Return NULL
460  If namep Then
463  name = fdt_get_string(fdt, Alignment helpers:* These helpers access words from a device tree blob. They're* built to work even with unaligned pointers on platforms (ike* ARM) that don't like unaligned loads and stores, & namelen)
465  If Not name Then
466  If lenp Then lenp = namelen
468  Return NULL
470  namep = name
474  If fdt_version(fdt) < 0x10 && (offset + size of prop ) % 8 && Alignment helpers:* These helpers access words from a device tree blob. They're* built to work even with unaligned pointers on platforms (ike* ARM) that don't like unaligned loads and stores >= 8 Then Return data + 4
477  Return data