• Home
  • Raw
  • Download

Lines Matching full:memory

33  * @defgroup los_memory  Dynamic memory
56 * Starting address of the memory.
70 * @param pool [IN] Starting address of memory.
85 * @brief Deinitialize dynamic memory.
89 * <li>This API is used to deinitialize the dynamic memory of a doubly linked list.</li>
92 * @param pool [IN] Starting address of memory.
94 * @retval #OS_ERROR The dynamic memory fails to be deinitialized.
95 * @retval #LOS_OK The dynamic memory is successfully deinitialized.
126 * @brief Free memory nodes allocated by the specified task.
130 * <li>This API is used to free all memory nodes allocated by the specified task.</li>
133 * @param pool [IN] The memory pool address.
134 * @param taskID [IN] The task ID and all memory nodes allocated by this task will be freed.
136 * @retval #OS_ERROR The memory pool is NULL or the task ID is invalid.
137 * @retval #LOS_OK All memory nodes allocated by this task are freed successfully.
155 * @brief Initialize multiple non-continuous memory regions.
159 …* <li>This API is used to initialize multiple non-continuous memory regions. If the starting addre…
160 …* the memory regions will be linked to the pool as free nodes. Otherwise, the first memory region…
166 …* <li>If the starting address of a memory pool is specified, the start address of the non-continuo…
167 * greater than the end address of the memory pool.</li>
168 * <li>The multiple non-continuous memory regions shouldn't conflict with each other.</li>
171 …* @param pool [IN] The memory pool address. If NULL is specified, the start address of f…
172 … initialized as the memory pool address. If not NULL, it should be a valid addr…
173 …* @param memRegions [IN] The LosMemRegion array that contains multiple non-continuous memory r…
174 * of the memory regions are placed in ascending order.
175 …* @param memRegionCount [IN] The count of non-continuous memory regions, and it should be the leng…
177 * @retval #LOS_NOK The multiple non-continuous memory regions fails to be initialized.
178 * @retval #LOS_OK The multiple non-continuous memory regions is initialized successfully.
190 * Memory pool extern information structure
205 * @brief Initialize dynamic memory.
209 * <li>This API is used to initialize the dynamic memory of a doubly linked list.</li>
214 * 1) Be less than or equal to the Memory pool size;
216 …* <li>Call this API when dynamic memory needs to be initialized during the startup of Huawei LiteO…
221 * @param pool [IN] Starting address of memory.
222 * @param size [IN] Memory size.
224 * @retval #OS_ERROR The dynamic memory fails to be initialized.
225 * @retval #LOS_OK The dynamic memory is successfully initialized.
236 * @brief Allocate dynamic memory.
240 * <li>This API is used to allocate a memory block of which the size is specified.</li>
245 …* <li>The size of the input parameter size can not be greater than the memory pool size that speci…
250 * @param pool [IN] Pointer to the memory pool that contains the memory block to be allocated.
251 * @param size [IN] Size of the memory block to be allocated (unit: byte).
253 * @retval #NULL The memory fails to be allocated.
254 …* @retval #VOID* The memory is successfully allocated with the starting address of the all…
264 * @brief Free dynamic memory.
267 * <li>This API is used to free specified dynamic memory that has been allocated.</li>
274 * @param pool [IN] Pointer to the memory pool that contains the dynamic memory block to be freed.
275 * @param ptr [IN] Starting address of the memory block to be freed.
277 …* @retval #LOS_NOK The memory block fails to be freed because the starting address of the…
278 * invalid, or the memory overwriting occurs.
279 * @retval #LOS_OK The memory block is successfully freed.
288 * @brief Re-allocate a memory block.
292 …<li>This API is used to allocate a new memory block of which the size is specified by size if the …
293 …* block size is insufficient. The new memory block will copy the data in the original memory block…
294 …* address is specified by ptr. The size of the new memory block determines the maximum size of dat…
295 * After the new memory block is created, the original one is freed.</li>
301 …* <li>The size of the input parameter size can not be greater than the memory pool size that speci…
308 …* @param pool [IN] Pointer to the memory pool that contains the original and new memory block…
309 * @param ptr [IN] Address of the original memory block.
310 * @param size [IN] Size of the new memory block.
312 * @retval #NULL The memory fails to be re-allocated.
313 …* @retval #VOID* The memory is successfully re-allocated with the starting address of the new me…
322 * @brief Allocate aligned memory.
326 …* <li>This API is used to allocate memory blocks of specified size and of which the starting addre…
332 …* <li>The size of the input parameter size can not be greater than the memory pool size that speci…
337 …* @param pool [IN] Pointer to the memory pool that contains the memory blocks to be allocate…
338 * @param size [IN] Size of the memory to be allocated.
339 * @param boundary [IN] Boundary on which the memory is aligned.
341 * @retval #NULL The memory fails to be allocated.
342 …* @retval #VOID* The memory is successfully allocated with the starting address of the allocated…
351 * @brief Get the size of memory pool's size.
355 * <li>This API is used to get the size of memory pool' total size.</li>
362 * @param pool [IN] A pointer pointed to the memory pool.
365 * @retval #UINT32 The size of the memory pool.
374 * @brief Get the size of memory totally used.
378 * <li>This API is used to get the size of memory totally used in memory pool.</li>
385 * @param pool [IN] A pointer pointed to the memory pool.
388 * @retval #UINT32 The size of the memory pool used.
397 * @brief Get the information of memory pool.
401 * <li>This API is used to get the information of memory pool.</li>
408 * @param pool [IN] A pointer pointed to the memory pool.
412 * @retval #LOS_OK Success to get memory information.
432 * @param pool [IN] A pointer pointed to the memory pool.
444 * @brief Check the memory pool integrity.
448 * <li>This API is used to check the memory pool integrity.</li>
458 * @param pool [IN] A pointer pointed to the memory pool.
460 * @retval #LOS_NOK The memory pool (pool) is impaired.
461 * @retval #LOS_OK The memory pool (pool) is integrated.
470 * @brief Enable memory pool to support no internal lock during using interfaces.
474 …* <li>This API is used to enable memory pool to support no internal lock during using interfaces,<…
479 * <li>The memory pool does not support multi-threaded concurrent application scenarios.
480 * <li>If you want to use this function, you need to call this interface before the memory
484 * @param pool [IN] Starting address of memory.