MCPcopy Create free account
hub / github.com/coreboot/coreboot / region_overlap

Function region_overlap

src/commonlib/include/commonlib/region.h:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static inline bool region_overlap(const struct region *r1, const struct region *r2)
133{
134 return (region_last(r1) >= region_offset(r2)) &&
135 (region_offset(r1) <= region_last(r2));
136}
137
138/* Helper to dynamically initialize region device. */
139void region_device_init(struct region_device *rdev,

Callers 3

append_and_check_regionFunction · 0.85
create_mmap_windowsFunction · 0.85

Calls 2

region_lastFunction · 0.85
region_offsetFunction · 0.85

Tested by

no test coverage detected