78 #if RKH_CFG_MP_SIZEOF_NBLOCK == 8
80 #elif RKH_CFG_MP_SIZEOF_NBLOCK == 16
82 #elif RKH_CFG_MP_SIZEOF_NBLOCK == 32
93 #if RKH_CFG_MP_SIZEOF_BSIZE == 8
95 #elif RKH_CFG_MP_SIZEOF_BSIZE == 16
97 #elif RKH_CFG_MP_SIZEOF_BSIZE == 32
230 #if RKH_CFG_MP_REDUCED_EN == RKH_DISABLED
254 #if RKH_CFG_MP_GET_LWM_EN == RKH_ENABLED
264 #if RKH_CFG_MP_GET_INFO_EN == RKH_ENABLED
Number of pool create requests.
Number of get memory block requests.
void rkh_mp_clear_info(RKH_MP_T *mp)
Clear performance information for a particular memory pool.
void * end
The last block in this pool.
Total number of blocks in bytes.
RKH_MPNB_T rkh_mp_get_low_wmark(RKH_MP_T *mp)
Retrieves the lowest number of free blocks ever present in the pool. This number provides valuable em...
Defines the data structure into which the performance information for memory pools is stored...
Number of full retrieves.
Maximum block size in bytes.
RKH_MPBS_T rkh_mp_get_bsize(RKH_MP_T *mp)
Retrieves the size of memory block in bytes.
void * free
The head of the linked list of free blocks.
Number of free blocks remaining.
RKH_MPNB_T rkh_mp_get_nfree(RKH_MP_T *mp)
Retrieves the current number of free memory blocks in the pool.
void rkh_mp_get_info(RKH_MP_T *mp, RKH_MPI_T *mpi)
Retrieves performance information for a particular memory pool.
void rkh_mp_put(RKH_MP_T *mp, void *blk)
When the application is done with the memory block, it must be returned to the appropiate memory pool...
void * start
The start of the original pool buffer.
void * rkh_mp_get(RKH_MP_T *mp)
Get a memory block from one of the previously allocated memory pool.
void rkh_mp_init(RKH_MP_T *mp, void *sstart, rui16_t ssize, RKH_MPBS_T bsize)
Initializes the previously allocated memory pool data strcuture RKH_MP_T.
Defines the data structure used to memory block pool facility.
Number of put memory block requests.
Minimum number of free blocks ever in this pool, i.e. holds the lowest number of free blocks ever pre...
Number of no free retrieves.
Defines the data types that uses RKH.