函数名称: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...
static void adjust_memory_size(const void *fdt, Heap_Area *area) { int node; node = fdt_path_offset_namelen( fdt, memory_path, (int) sizeof(memory_path) - 1 ); if (node >= 0) { int len; const void *val; uintptr_t begin; uintptr_t size; uintptr_t a_bit; val = fdt_...
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) ...
static void check_string_index(const void *fdt, const char *path, const char *property, const char *string, int idx) { int offset, err; offset = fdt_path_offset(fdt, path); if (offset < 0) FAIL("Couldn't find path %s", path); err = fdt_stringlist_search(fdt, offset, property...
/* skip-name offset, length and value */ offset += sizeof(struct fdt_property) - FDT_TAGSIZE + fdt32_to_cpu(*lenp); if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) offset += 4; break; case FDT_END: cas...
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...
bool dryrun) { const __be32 *p; struct device_node *np; struct property *pp, **prev_pp = NULL; const char *pathp; unsigned int l, allocl; static int depth; int old_depth; int offset; int has_name = 0; int new_format = 0; pathp = fdt_get_name(blob, *poffset, &l); ...