...
The data structure is shown below:
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
typedef struct net_stat_pool { NET_TYPE Type; NET_STAT_POOL_QTY EntriesInit; NET_STAT_POOL_QTY EntriesTotal; NET_STAT_POOL_QTY EntriesAvail; NET_STAT_POOL_QTY EntriesUsed; NET_STAT_POOL_QTY EntriesUsedMax; NET_STAT_POOL_QTY EntriesLostCur; NET_STAT_POOL_QTY EntriesLostTotal; CPU_INT32U EntriesAllocatedCtr; CPU_INT32U EntriesDeallocatedCtr; } NET_STAT_POOL; |
NET_STAT_POOL_QTY
is a data type currently set to CPU_INT16U
and thus contains a maximum count of 65535.
Access to buffer statistics is obtained via interface functions that the application can call (described in the next sections). Most likely, only the following variables in NET_STAT_POOL
need to be examined, because the .Type
member is configured at initialization time as NET_STAT_TYPE_POOL
:
.EntriesAvail
This variable indicates how many buffers are available in the pool.
...