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

Function fdt_move

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

Source from the content-addressed store, hash-verified

325}
326
327int fdt_move(const void *fdt, void *buf, int bufsize)
328{
329 if (!can_assume(VALID_INPUT) && bufsize < 0)
330 return -FDT_ERR_NOSPACE;
331
332 FDT_RO_PROBE(fdt);
333
334 if (fdt_totalsize(fdt) > (unsigned int)bufsize)
335 return -FDT_ERR_NOSPACE;
336
337 memmove(buf, fdt, fdt_totalsize(fdt));
338 return 0;
339}

Callers 1

fdt_open_intoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected