1 // © 2021 Qualcomm Innovation Center, Inc. All rights reserved. 2 // 3 // SPDX-License-Identifier: BSD-3-Clause 4 5 // Allocate a block of memory 6 void_ptr_result_t 7 bootmem_allocate(size_t size, size_t align); 8 9 // Allocates all the remaining bootmem memory. 10 // 11 // This is used to hand off the remaining memory to the root partition memory 12 // allocator. 13 void_ptr_result_t 14 bootmem_allocate_remaining(size_t *size); 15 16 // Return the entire bootmem region, including any memory that has been 17 // allocated by the functions above. 18 // 19 // This is called while bootstrapping the memory ownership database. 20 void * 21 bootmem_get_region(size_t *size); 22