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

Function fdt_add_subnode_possible

components/drivers/ofw/raw.c:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <drivers/ofw_raw.h>
12
13int fdt_add_subnode_possible(void *fdt, int parentoffset, const char *name)
14{
15 int nodeoffset;
16
17 if ((nodeoffset = fdt_add_subnode(fdt, parentoffset, name)) < 0)
18 {
19 fdt_open_into(fdt, fdt, fdt_totalsize(fdt) + FDT_PADDING_SIZE);
20 nodeoffset = fdt_add_subnode(fdt, parentoffset, name);
21 }
22
23 return nodeoffset;
24}
25
26int fdt_add_mem_rsv_possible(void *fdt, size_t addr, size_t size)
27{

Callers 1

fdt_install_initrdFunction · 0.85

Calls 2

fdt_add_subnodeFunction · 0.50
fdt_open_intoFunction · 0.50

Tested by

no test coverage detected