首页
社区
课程
招聘
[求助]NdisReturnPackets用法
发表于: 2011-11-13 16:35 4570

[求助]NdisReturnPackets用法

2011-11-13 16:35
4570
msdn中关于NdisReturnPackets有段的说法不太清楚:
When an underlying NIC driver runs low on available packet pool for receive indications or its NIC runs low on empty receive buffers, the miniport can force the NDIS library to call every bound protocol driver's ProtocolReceive function, each time with a single packet descriptor, until the miniport has regained ownership of its packet descriptors and the NIC has receive buffers available for incoming net packets. A ProtocolReceive function cannot begin post-processing a packet of received data and forwarding the processed data to clients until the driver's ProtocolReceiveComplete function is called.

这句话的意思难道是在ProtocolReceive函数中不能直接将获得到的packet的数据提交给应用层,必须等到ProtocolReceiveComplete调用完成么?

我看ddk中NdisProt的例子,上面在ProtocolReceive中就将获得的数据放到队列中供应用层读取了。。。。

实在不懂啊。。。
还请大侠们指点。。。

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 107
活跃值: (429)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
站在沙发上学习一下....
2011-11-13 20:26
0
游客
登录 | 注册 方可回帖
返回