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

Function fdt_next_subnode

components/drivers/ofw/libfdt/fdt.c:298–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298int fdt_next_subnode(const void *fdt, int offset)
299{
300 int depth = 1;
301
302 /*
303 * With respect to the parent, the depth of the next subnode will be
304 * the same as the last.
305 */
306 do {
307 offset = fdt_next_node(fdt, offset, &depth);
308 if (offset < 0 || depth < 1)
309 return -FDT_ERR_NOTFOUND;
310 } while (depth > 1);
311
312 return offset;
313}
314
315const char *fdt_find_string_(const char *strtab, int tabsize, const char *s)
316{

Callers 1

fdt_unflatten_singleFunction · 0.50

Calls 1

fdt_next_nodeFunction · 0.70

Tested by

no test coverage detected