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

Function fdt_first_subnode

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

Source from the content-addressed store, hash-verified

285}
286
287int fdt_first_subnode(const void *fdt, int offset)
288{
289 int depth = 0;
290
291 offset = fdt_next_node(fdt, offset, &depth);
292 if (offset < 0 || depth != 1)
293 return -FDT_ERR_NOTFOUND;
294
295 return offset;
296}
297
298int fdt_next_subnode(const void *fdt, int offset)
299{

Callers 1

fdt_unflatten_singleFunction · 0.50

Calls 1

fdt_next_nodeFunction · 0.70

Tested by

no test coverage detected