函数名称: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...
libfdt: fdt_path_offset_namelen: Reject empty path Browse files Reject empty paths and negative lengths, according to the DT spec v0.4: The convention for specifying a device path is: /node-name-1/node-name-2/node-name-N The path to the root node is /. This prevents the access to...
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) eg...
static int get_path_len(const void *fdt, int nodeoffset) { int len = 0, namelen; const char *name;FDT_CHECK_HEADER(fdt);for (;;) { name = fdt_get_name(fdt, nodeoffset, &namelen); if (!name) return namelen;/* root? we're done */ if (namelen == 0)...
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 ...
stop_at = offset; break; case FDT_BEGIN_NODE: depth++; if (depth == FDT_MAX_DEPTH) return -FDT_ERR_BADSTRUCTURE; name = fdt_get_name(fdt, offset, &len); if (end - path + 2 + len >= path_len) return -FDT_ERR_NOSPACE; if (end != path + 1) *end++ = '/'; strcpy(en...
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; ...