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

Function fdt_add_mem_rsv_possible

components/drivers/ofw/raw.c:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int fdt_add_mem_rsv_possible(void *fdt, size_t addr, size_t size)
27{
28 int err = 0;
29
30 if (fdt_add_mem_rsv(fdt, addr, size) < 0)
31 {
32 fdt_open_into(fdt, fdt, fdt_totalsize(fdt) + FDT_PADDING_SIZE);
33 err = fdt_add_mem_rsv(fdt, addr, size);
34 }
35
36 return err;
37}
38
39int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, uint64_t val, bool is_u64)
40{

Callers

nothing calls this directly

Calls 2

fdt_add_mem_rsvFunction · 0.50
fdt_open_intoFunction · 0.50

Tested by

no test coverage detected