Lines Matching +full:memory +full:- +full:alignment
4 * SPDX-License-Identifier: Apache-2.0
11 * @brief Memory heaps based on memory attributes
12 * @defgroup memory_attr_heap Memory heaps based on memory attributes
24 * @brief Init the memory pool
26 * This must be the first function to be called to initialize the memory pools
27 * from all the memory regions with the a software attribute.
30 * @retval -EALREADY if the pool was already initialized.
31 * @retval -ENOMEM too many regions already allocated.
36 * @brief Allocate memory with a specified attribute and size.
38 * Allocates a block of memory of the specified size in bytes and with a
40 * correct memory heap to allocate memory from.
42 * @param attr capability / attribute requested for the memory block.
45 * @retval ptr a valid pointer to the allocated memory.
46 * @retval NULL if no memory is available with that attribute and size.
51 * @brief Allocate aligned memory with a specified attribute, size and alignment.
53 * Allocates a block of memory of the specified size in bytes and with a
55 * power of two alignment in bytes.
57 * @param attr capability / attribute requested for the memory block.
58 * @param align power of two alignment for the returned pointer in bytes.
61 * @retval ptr a valid pointer to the allocated memory.
62 * @retval NULL if no memory is available with that attribute and size.
67 * @brief Free the allocated memory
69 * Used to free the passed block of memory that must be the return value of a
79 * @brief Get a specific memory region descriptor for a provided address
81 * Finds the memory region descriptor struct controlling the provided pointer.
86 * @retval str pointer to a memory region structure the address belongs to.