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

Function _contiguous_offset

components/mm/mm_aspace.c:321–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 .attr = (attr),}
320
321static rt_bool_t _contiguous_offset(rt_varea_t neighbour, rt_size_t map_size,
322 struct _mapping_property *prop)
323{
324 rt_size_t n_off = neighbour->offset;
325 rt_size_t map_off = prop->offset;
326 return n_off < map_off ?
327 n_off + (neighbour->size >> MM_PAGE_SHIFT) == map_off :
328 map_off + (map_size >> MM_PAGE_SHIFT) == n_off;
329}
330
331static rt_bool_t _compatible(rt_varea_t neighbour, rt_size_t map_size,
332 struct _mapping_property *prop)

Callers 1

_compatibleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected