-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Description
Is your feature request related to a problem? Please describe.
Modules should allocate memory through a common module data associated API as this enables:
- ability check that no memory is leaked when module unloads
- ability to use module data when making allocations (e.g. memory domain)
Describe the solution you'd like
A clear and concise description of what you want to happen.
- new module associated alloc and free functions for heap allocations
- implement on top of
sof/src/audio/module_adapter/module/generic.c
Line 113 in 632dca3
void *module_allocate_memory(struct processing_module *mod, uint32_t size, uint32_t alignment)
- implement on top of
- add check to module unload that checks that all memory is freed
- phase 2: change all modules to use the new memory allocation API instead of direct use of rzmalloc() and rfree()
Additional context
The module associated memory allocation API simplifies user space transition by allowing usage of module specific data when allocating memory.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request