Previous versions of the Wind River Network Stack made use of two special netBufLib pools: the network stack data pool and the network stack system pool. The stack used the data pool for packets sent to the network and for data in socket send buffers; it used the system pool for control structures such as sockets, route entries, protocol control blocks, socket addresses, and the like.
The network stack no longer uses netBufLib pools internally, except when it communicates with network device drivers. It does not require the legacy network stack data and system pools, and so the component INCLUDE_NET_POOL that includes and configures these pools is not present in the default VxWorks build.
默认不用这两个POOL,所以直接返回0
加上INCLUDE_NET_POOL可以看到输出结果
-> netStackDataPoolShow
type number
--------- ------
FREE : 144
TOTAL : 144
number of mbufs: 144
number of times failed to find space: 0
number of times waited for space: 0
number of times drained protocols for space: 0
__________________
CLUSTER POOL TABLE
_______________________________________________________________________________
size clusters free usage minsize maxsize empty
-------------------------------------------------------------------------------
128 128 128 0 0 0 0
256 4 4 0 0 0 0
512 4 4 0 0 0 0
1024 4 4 0 0 0 0
2048 4 4 0 0 0 0
-------------------------------------------------------------------------------
value = 80 = 0x50 = 'P'
->