Skip to content

rtio: Allow for other allocator strategies than mem blocks #95849

@teburd

Description

@teburd

Summary

mem blocks is a great fit for RTIO and its usage so far with sensors but as usage grows beyond sensors other allocator strategies may wish to be used

Describe the solution you'd like

An allocator interface defined and expected from any RTIO allocator, with the mem block allocator fitting this.

Basically add

#define RTIO_DEFINE_WITH_ALLOCATOR(sqe_sz, cqe_sz, allocator)

RTIO_DEFINE_WITH_MEMPOOL can reuse this macro to do what it does today so no backwards incompatibility, some function pointer indirection will solve this.

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions