Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mem_attr_heap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Carlo Caione, <ccaione@baylibre.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_MEM_ATTR_HEAP_H_
8#define ZEPHYR_INCLUDE_MEM_ATTR_HEAP_H_
9
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
34
48void *mem_attr_heap_alloc(uint32_t attr, size_t bytes);
49
64void *mem_attr_heap_aligned_alloc(uint32_t attr, size_t align, size_t bytes);
65
76void mem_attr_heap_free(void *block);
77
89
90#ifdef __cplusplus
91}
92#endif
93
98#endif /* ZEPHYR_INCLUDE_MEM_ATTR_HEAP_H_ */
void mem_attr_heap_free(void *block)
Free the allocated memory.
void * mem_attr_heap_aligned_alloc(uint32_t attr, size_t align, size_t bytes)
Allocate aligned memory with a specified attribute, size and alignment.
int mem_attr_heap_pool_init(void)
Init the memory pool.
void * mem_attr_heap_alloc(uint32_t attr, size_t bytes)
Allocate memory with a specified attribute and size.
const struct mem_attr_region_t * mem_attr_heap_get_region(void *addr)
Get a specific memory region descriptor for a provided address.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
memory-attr region structure.
Definition mem_attr.h:56