4242
4343/**
4444 * Allocates memory block.
45- * @param zone Zone to allocate memory from, see enum mem_zone.
46- * @param flags Flags, see SOF_MEM_FLAG_...
47- * @param caps Capabilities, see SOF_MEM_CAPS_...
45+ * @param flags Flags, see SOF_MEM_FLAG_....
4846 * @param bytes Size in bytes.
4947 * @return Pointer to the allocated memory or NULL if failed.
5048 *
51- * @note Do not use for buffers (SOF_MEM_ZONE_BUFFER zone).
52- * Use rballoc(), rballoc_align() to allocate memory for buffers.
5349 */
5450void * rmalloc (uint32_t flags , size_t bytes );
5551
5652/**
5753 * Similar to rmalloc(), guarantees that returned block is zeroed.
58- *
59- * @note Do not use for buffers (SOF_MEM_ZONE_BUFFER zone).
60- * rballoc(), rballoc_align() to allocate memory for buffers.
6154 */
6255void * rzalloc (uint32_t flags , size_t bytes );
6356
6457/**
65- * Allocates memory block from SOF_MEM_ZONE_BUFFER .
58+ * Allocates memory block.
6659 * @param flags Flags, see SOF_MEM_FLAG_...
67- * @param caps Capabilities, see SOF_MEM_CAPS_...
6860 * @param bytes Size in bytes.
6961 * @param alignment Alignment in bytes.
7062 * @return Pointer to the allocated memory or NULL if failed.
@@ -81,10 +73,9 @@ static inline void *rballoc(uint32_t flags, size_t bytes)
8173}
8274
8375/**
84- * Changes size of the memory block allocated from SOF_MEM_ZONE_BUFFER .
76+ * Changes size of the memory block allocated.
8577 * @param ptr Address of the block to resize.
8678 * @param flags Flags, see SOF_MEM_FLAG_...
87- * @param caps Capabilities, see SOF_MEM_CAPS_...
8879 * @param bytes New size in bytes.
8980 * @param old_bytes Old size in bytes.
9081 * @param alignment Alignment in bytes.
@@ -107,9 +98,6 @@ static inline void *rbrealloc(void *ptr, uint32_t flags,
10798/**
10899 * Frees the memory block.
109100 * @param ptr Pointer to the memory block.
110- *
111- * @note Blocks from SOF_MEM_ZONE_SYS cannot be freed, such a call causes
112- * panic.
113101 */
114102void rfree (void * ptr );
115103
0 commit comments