core/heap.c
/* Returns whether within the region we reserved from the OS for doling
 * out internally via our vm_heap_t; asserts that the address was also
 * logically reserved within the vm_heap_t.
 */
Returns whether within the region we reserved from the OS for doling
out internally via our vm_heap_t; asserts that the address was also
logically reserved within the vm_heap_t.
Returns whether within the region we reserved from the OS for doling out internally via our vm_heap_t ; asserts that the address was also logically reserved within the vm_heap_t .
static
bool
vmm_is_reserved_unit(vm_heap_t *vmh, vm_addr_t p, size_t size)
{
    size = ALIGN_FORWARD(size, VMM_BLOCK_SIZE);
    if (p < vmh->start_addr || vmh->end_addr < p ||
        vmh->end_addr < (p + size))
        return false;
    ASSERT(CHECK_TRUNCATE_TYPE_uint(size/VMM_BLOCK_SIZE));
    ASSERT(bitmap_are_reserved_blocks(vmh->blocks, vmh->num_blocks, 
                                      vmm_addr_to_block(vmh, p),
                                      (uint)size/VMM_BLOCK_SIZE));
    return true;
}
static bool vmm_is_reserved_unit ( vm_heap_t * vmh , vm_addr_t p , size_t size ) { size = ALIGN_FORWARD ( size , VMM_BLOCK_SIZE ) ; if ( p < vmh -> start_addr || vmh -> end_addr < p || vmh -> end_addr < ( p + size ) ) return false ; ASSERT ( CHECK_TRUNCATE_TYPE_uint ( size / VMM_BLOCK_SIZE ) ) ; ASSERT ( bitmap_are_reserved_blocks ( vmh -> blocks , vmh -> num_blocks , vmm_addr_to_block ( vmh , p ) , ( uint ) size / VMM_BLOCK_SIZE ) ) ; return true ; }
Returns whether within the region we reserved from the OS for doling
 out internally via our vm_heap_t; asserts that the address was also
 logically reserved within the vm_heap_t.
Returns whether within the region we reserved from the OS for doling out internally via our vm_heap_t ; asserts that the address was also logically reserved within the vm_heap_t .
/*overflow*/