Skip to content

[FEATURE] module associated heap alloc and free api #10131

@jsarha

Description

@jsarha

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
  • 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 request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions