Function report |
Source Code:scripts\dtc\libfdt\fdt_rw.c |
Create Date:2022-07-28 06:18:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fdt_add_property_
Proto:static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | fdt | |
| int | nodeoffset | |
| const char * | name | |
| int | len | |
| struct fdt_property ** | prop |
| 197 | If (nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0 Then Return nextoffset |
| 200 | namestroff = fdt_find_add_string_(fdt, name, & allocated) |
| 201 | If namestroff < 0 Then Return namestroff |
| 204 | prop = fdt_offset_ptr_w_(fdt, nextoffset) |
| 205 | proplen = size of prop + FDT_TAGALIGN(len) |
| 207 | err = fdt_splice_struct_(fdt, * prop, 0, proplen) |
| 208 | If err Then |
| 211 | Return err |
| 215 | nameoff = cpu_to_fdt32(namestroff) |
| 216 | len = cpu_to_fdt32(len) |
| 217 | Return 0 |
| 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 |