Struct mpool_params
Defined in File mpool.h
Struct Documentation
-
struct mpool_params
mpool.h
Implementation of memory/buffer pool of memory chunks.
SPDX-License-Identifier: MIT
- Copyright
2017 John Harwell, All rights reserved.
Memory pool initialization parameters.
Public Members
-
dptr_t *meta
Pointer to application-allocated space for storing the llist_node objects used to carve up mpool_params::elements. Ignored unless RCSW_NOALLOC_META is passed.
-
dptr_t *elements
Pointer to application-allocated space for the pool.Ignored unless RCSW_NOALLOC_META is passed.
-
size_t elt_size
Size of elements in bytes.
-
size_t max_elts
Number of elements in the pool.
-
uint32_t flags
Configuration flags. See mpool::flags for valid flags.