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

Function _not_in_range

components/mm/mm_aspace.c:646–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644#define _IS_OVERSIZE(start, length, limit_s, limit_sz) (((length) + (rt_size_t)((char *)(start) - (char *)(limit_start))) > (limit_size))
645
646static inline int _not_in_range(rt_size_t flags, void *start, rt_size_t length,
647 void *limit_start, rt_size_t limit_size)
648{
649 /* assuming (base + length) will not overflow except (0) */
650 int rc = (flags & MMF_MAP_FIXED || start != RT_NULL)
651 ? (_IS_OVERFLOW(start, length) || start < limit_start ||
652 _IS_OVERSIZE(start, length, limit_start, limit_size))
653 : length > limit_size;
654 if (rc)
655 LOG_D("%s: [%p : %p] [%p : %p]", __func__, start, length, limit_start, limit_size);
656 return rc;
657}
658
659static inline int _not_align(void *start, rt_size_t length, rt_size_t mask)
660{

Callers 11

rt_aspace_mapFunction · 0.85
rt_aspace_map_staticFunction · 0.85
_mm_aspace_map_phyFunction · 0.85
rt_aspace_unmapFunction · 0.85
rt_aspace_unmap_rangeFunction · 0.85
rt_aspace_mremap_rangeFunction · 0.85
_find_freeFunction · 0.85
rt_aspace_load_pageFunction · 0.85
rt_varea_map_pageFunction · 0.85
rt_varea_map_rangeFunction · 0.85
rt_varea_unmap_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected