[RFC v2 2/3] lib: add fastmem library
Stephen Hemminger
stephen at networkplumber.org
Tue May 26 15:23:12 CEST 2026
On Tue, 26 May 2026 10:57:42 +0200
Mattias Rönnblom <hofors at lysator.liu.se> wrote:
> +__rte_experimental
> +void *
> +rte_fastmem_alloc(size_t size, size_t align, unsigned int flags)
> + __rte_alloc_size(1) __rte_alloc_align(2);
Should also add attribute __rte_malloc which tells compiler
that pointer returned cannot alias other memory
And add __rte_dealloc(rte_fastmem_free, 1)
which tells compiler that the returned pointer should only go
back to fastmem (not free, rte_free, etc).
More information about the dev
mailing list