Message Pool
This module includes the platform abstraction for the message pool.
Summary
Functions |
|
---|---|
otPlatMessagePoolFree(otInstance *aInstance, otMessage *aBuffer)
|
void
This function is used to free a Buffer back to the platform managed buffer pool.
|
otPlatMessagePoolInit(otInstance *aInstance, uint16_t aMinNumFreeBuffers, size_t aBufferSize)
|
void
Initialize the platform implemented message pool.
|
otPlatMessagePoolNew(otInstance *aInstance)
|
Allocate a buffer from the platform managed buffer pool.
|
otPlatMessagePoolNumFreeBuffers(otInstance *aInstance)
|
uint16_t
Get the number of free buffers.
|
Functions
otPlatMessagePoolFree
void otPlatMessagePoolFree( otInstance *aInstance, otMessage *aBuffer )
This function is used to free a Buffer back to the platform managed buffer pool.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatMessagePoolInit
void otPlatMessagePoolInit( otInstance *aInstance, uint16_t aMinNumFreeBuffers, size_t aBufferSize )
Initialize the platform implemented message pool.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otPlatMessagePoolNew
otMessage * otPlatMessagePoolNew( otInstance *aInstance )
Allocate a buffer from the platform managed buffer pool.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Buffer or NULL if no Buffers are available.
|
otPlatMessagePoolNumFreeBuffers
uint16_t otPlatMessagePoolNumFreeBuffers( otInstance *aInstance )
Get the number of free buffers.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The number of buffers currently free and available to OpenThread.
|