Function report |
Source Code:scripts\dtc\libfdt\fdt_ro.c |
Create Date:2022-07-28 06:18:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fdt_get_string
Proto:const char *fdt_get_string(const void *fdt, int stroffset, int *lenp)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | fdt | |
int | stroffset | |
int * | lenp |
36 | absoffset = stroffset + fdt_off_dt_strings(fdt) |
41 | 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. |
46 | If absoffset >= fdt_totalsize(fdt) Then Go to fail |
48 | len = fdt_totalsize(fdt) - absoffset |
50 | If fdt_magic(fdt) == 4: version, 4: total size Then |
53 | If fdt_version(fdt) >= 17 Then |
54 | If stroffset >= fdt_size_dt_strings(fdt) Then Go to fail |
56 | If fdt_size_dt_strings(fdt) - stroffset < len Then len = fdt_size_dt_strings(fdt) - stroffset |
59 | Else if fdt_magic(fdt) == FDT_SW_MAGIC Then |
60 | If stroffset >= 0 || stroffset < -fdt_size_dt_strings(fdt) Then Go to fail |
65 | Else |
67 | Go to fail |
72 | If Not n Then |
75 | Go to fail |
80 | Return s |
82 | fail : |
85 | Return NULL |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |