MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / fdt_subnode_offset_namelen

Function fdt_subnode_offset_namelen

components/drivers/ofw/libfdt/fdt_ro.c:225–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225int fdt_subnode_offset_namelen(const void *fdt, int offset,
226 const char *name, int namelen)
227{
228 int depth;
229
230 FDT_RO_PROBE(fdt);
231
232 for (depth = 0;
233 (offset >= 0) && (depth >= 0);
234 offset = fdt_next_node(fdt, offset, &depth))
235 if ((depth == 1)
236 && fdt_nodename_eq_(fdt, offset, name, namelen))
237 return offset;
238
239 if (depth < 0)
240 return -FDT_ERR_NOTFOUND;
241 return offset; /* error */
242}
243
244int fdt_subnode_offset(const void *fdt, int parentoffset,
245 const char *name)

Callers 4

fdt_subnode_offsetFunction · 0.70
fdt_path_offset_namelenFunction · 0.70
overlay_symbol_updateFunction · 0.70
fdt_add_subnode_namelenFunction · 0.70

Calls 2

fdt_nodename_eq_Function · 0.85
fdt_next_nodeFunction · 0.70

Tested by

no test coverage detected