• Home
  • Raw
  • Download

Lines Matching +full:in +full:- +full:memory

2  * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without modification,
11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 * of conditions and the following disclaimer in the documentation and/or other materials
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
33 * @defgroup los_memory Dynamic memory
55 * The omit layers of function call from call kernel memory interfaces
69 * The start address of exc interaction dynamic memory pool address, when the exc
76 * The start address of system dynamic memory pool address.
83 * @brief Deinitialize dynamic memory.
87 * <li>This API is used to deinitialize the dynamic memory of a doubly linked list.</li>
90 * @param pool [IN] Starting address of memory.
92 * @retval #OS_ERROR The dynamic memory fails to be deinitialized.
93 * @retval #LOS_OK The dynamic memory is successfully deinitialized.
123 * Memory pool extern information structure
138 * @brief Initialize dynamic memory.
142 * <li>This API is used to initialize the dynamic memory of a doubly linked list.</li>
147 * 1) Be less than or equal to the Memory pool size;
149 …* <li>Call this API when dynamic memory needs to be initialized during the startup of Huawei LiteO…
150 * <li>The parameter input must be four byte-aligned.</li>
154 * @param pool [IN] Starting address of memory.
155 * @param size [IN] Memory size.
157 * @retval #OS_ERROR The dynamic memory fails to be initialized.
158 * @retval #LOS_OK The dynamic memory is successfully initialized.
169 * @brief Enable memory pool to support dynamic expansion.
173 * <li>This API is used to enable the dynamic memory to expand size dynamically.</li>
177 * <li>The memory pool is default diabled dynamic expansion.
180 * @param pool [IN] Starting address of memory.
193 * @brief Allocate dynamic memory.
197 * <li>This API is used to allocate a memory block of which the size is specified.</li>
202 …* <li>The size of the input parameter size can not be greater than the memory pool size that speci…
204 * <li>The size of the input parameter size must be four byte-aligned.</li>
207 * @param pool [IN] Pointer to the memory pool that contains the memory block to be allocated.
208 * @param size [IN] Size of the memory block to be allocated (unit: byte).
210 * @retval #NULL The memory fails to be allocated.
211 …* @retval #VOID* The memory is successfully allocated with the starting address of the all…
221 * @brief Free dynamic memory.
224 * <li>This API is used to free specified dynamic memory that has been allocated.</li>
231 * @param pool [IN] Pointer to the memory pool that contains the dynamic memory block to be freed.
232 * @param ptr [IN] Starting address of the memory block to be freed.
234 …* @retval #LOS_NOK The memory block fails to be freed because the starting address of the…
235 * invalid, or the memory overwriting occurs.
236 * @retval #LOS_OK The memory block is successfully freed.
245 * @brief Re-allocate a memory block.
249 …<li>This API is used to allocate a new memory block of which the size is specified by size if the …
250 …* block size is insufficient. The new memory block will copy the data in the original memory block…
251 …* address is specified by ptr. The size of the new memory block determines the maximum size of dat…
252 * After the new memory block is created, the original one is freed.</li>
258 …* <li>The size of the input parameter size can not be greater than the memory pool size that speci…
261 …* it must be four byte-aligned; 2) if the ptr is allocated by LOS_MemAllocAlign, it must be aligne…
265 …* @param pool [IN] Pointer to the memory pool that contains the original and new memory block…
266 * @param ptr [IN] Address of the original memory block.
267 * @param size [IN] Size of the new memory block.
269 * @retval #NULL The memory fails to be re-allocated.
270 …* @retval #VOID* The memory is successfully re-allocated with the starting address of the new me…
279 * @brief Allocate aligned memory.
283 …* <li>This API is used to allocate memory blocks of specified size and of which the starting addre…
289 …* <li>The size of the input parameter size can not be greater than the memory pool size that speci…
294 …* @param pool [IN] Pointer to the memory pool that contains the memory blocks to be allocate…
295 * @param size [IN] Size of the memory to be allocated.
296 * @param boundary [IN] Boundary on which the memory is aligned.
298 * @retval #NULL The memory fails to be allocated.
299 …* @retval #VOID* The memory is successfully allocated with the starting address of the allocated…
308 * @brief Get the size of memory pool's size.
312 * <li>This API is used to get the size of memory pool' total size.</li>
319 * @param pool [IN] A pointer pointed to the memory pool.
322 * @retval #UINT32 The size of the memory pool.
331 * @brief Get the size of memory totally used.
335 * <li>This API is used to get the size of memory totally used in memory pool.</li>
342 * @param pool [IN] A pointer pointed to the memory pool.
345 * @retval #UINT32 The size of the memory pool used.
354 * @brief Get the information of memory pool.
358 * <li>This API is used to get the information of memory pool.</li>
365 * @param pool [IN] A pointer pointed to the memory pool.
366 * @param poolStatus [IN] A pointer for storage the pool status
369 * @retval #LOS_OK Success to get memory information.
378 * @brief Get the number of free node in every size.
382 * <li>This API is used to get the number of free node in every size.</li>
389 * @param pool [IN] A pointer pointed to the memory pool.
401 * @brief Check the memory pool integrity.
405 * <li>This API is used to check the memory pool integrity.</li>
411 * is defined in LiteOS.</li>
415 * @param pool [IN] A pointer pointed to the memory pool.
417 * @retval #LOS_NOK The memory pool (pool) is impaired.
418 * @retval #LOS_OK The memory pool (pool) is integrated.