函数名称:fdt_path_offset_namelen 函数原型:int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) 返回类型:int 参数: 类型参数名称 const void * fdt const char * path int namelen 237 end等于path加namelen 238...
staticvoidcompare_properties(constvoid*fdt1,intoffset1,constvoid*fdt2,intoffset2){intoffset = offset1;/* Check the properties */for(offset = fdt_first_property_offset(fdt1, offset1); offset >=0; offset = fdt_next_property_offset(fdt1, offset)) {constchar*name;intlen1, len2;constvoid...
&& _fdt_nodename_eq(fdt, offset, name, namelen))returnoffset;// 탐색했더니 찾고자 하는 node가 없는 상황if(depth <0)return-FDT_ERR_NOTFOUND;returnoffset;/* error */} 开发者ID:fehead,项目名称:linux_m,代码行数:46,代码来源:fdt_ro.c 示例6: fdt_get_path ...
int fdt_path_offset(const void *fdt, const char *path) eg:node = fdt_path_offset(gd->fdt_blob, “/aliases”); 功能:获得dtb下某个节点的路径path的偏移。这个偏移就代表了这个节点。 fdt_getprop const void *fdt_getprop(const void *fdt, int nodeoffset, const char *name, int *lenp) eg...
int fdt_path_offset(const void *fdt, const char *path) eg:node = fdt_path_offset(gd->fdt_blob, “/aliases”); 功能:获得dtb下某个节点的路径path的偏移。这个偏移就代表了这个节点。 fdt_getprop const void *fdt_getprop(const void *fdt, int nodeoffset, const char *name, int *lenp) ...
int (*include_func)(void *priv, const void *fdt, int offset, int type, const char *data, int size), struct display_info *disp, struct fdt_region *region, int max_regions, char *path, int path_len, int flags) { struct fdt_region_state state; ...
name=fdt_get_name(fdt,offset,&len); /* The root node must have an empty name */ if(!depth&&*name) return-FDT_ERR_BADLAYOUT; if(end-path+2+len>=path_len) return-FDT_ERR_NOSPACE; if(end!=path+1) Expand DownExpand Up@@ -108,6 +117,8 @@ int fdt_find_regions(const void *...
AttributeTypename=”bitOffset”cit:type=ui4”/ AttributeTypename=”constValucdt:type=”ui4”/ AttributeTypename=”symbolicAddress”cit:type=”string/ !-DefinitionofElements一〉 ElementTyp巳name=”Service”con1e11l=”empLy”model=”closed”〉 attributetype=”felt:nodcld”required=”noγ〉 at1ribu1...
delta += ALIGN(newlen) - ALIGN(oldlen); return realloc_fdt(fdt, delta); } static int store_key_value(char **blob, const char *node_name, const char *property, const char *buf, int len) { int node; int err; node = fdt_path_offset(*blob, node_name); if (node ...
offset = fdt_next_subnode(blob, offset)) {structudevice*dev;constchar*name; name = fdt_get_name(blob, offset,NULL); ret = device_bind_driver_to_node(mux,"i2c_mux_bus_drv", name, offset, &dev); debug(" - bind ret=%d, %s\n", ret, dev ? dev->name :NULL);if(ret)returnret...