为什么netStackSysPoolShow没有任何输出

jackydi 2014-06-24 07:57:34
我想使用netStackSysPoolShow命令查看网卡驱动使用的缓冲区情况,但是却没有任何输出,直接返回0,这是怎么回事呢?内核中已经根据说明包含INCLUDE_NETPOOLSHOW宏了。

同样使用netStackDataPoolShow命令也没有任何输出。

VxWorks系统为6.9
...全文
297 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jackydi 2014-06-27
  • 打赏
  • 举报
回复
多谢 lerd_cs 的解释,这些是手册里的吗?我在netStackDataPoolShow()函数所在库的说明页中没有看到这些内容,应该是在别处吧?
william_wxh 2014-06-26
  • 打赏
  • 举报
回复
ls说得挺清楚
lerd_cs 2014-06-25
  • 打赏
  • 举报
回复
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' ->

2,179

社区成员

发帖
与我相关
我的任务
社区描述
xworks是美国 Wind River System 公司( 以下简称风河公司 ,即 WRS 公司)推出的一个实时操作系统。
社区管理员
  • VxWorks开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧