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

Function fdt_blocks_misordered_

components/drivers/ofw/libfdt/fdt_rw.c:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "libfdt_internal.h"
12
13static int fdt_blocks_misordered_(const void *fdt,
14 int mem_rsv_size, int struct_size)
15{
16 return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8))
17 || (fdt_off_dt_struct(fdt) <
18 (fdt_off_mem_rsvmap(fdt) + mem_rsv_size))
19 || (fdt_off_dt_strings(fdt) <
20 (fdt_off_dt_struct(fdt) + struct_size))
21 || (fdt_totalsize(fdt) <
22 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt)));
23}
24
25static int fdt_rw_probe_(void *fdt)
26{

Callers 2

fdt_rw_probe_Function · 0.85
fdt_open_intoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected