阅读:1300回复:1
NdisMSendComplete是否有释放Packet头和Buffer头的功能
如题,我在分析ne2000驱动时,发现NdisMSendComplete之后并未显示调用NdisFreePacket(/Buffer)来释放占用的Packet(/Buffer) Descriptor. 由此猜想,NdisMSendComplete中已经做了释放资源的工作,即,可以代替两个Free函数。特此向高手求证。谢谢!
|
|
|
沙发#
发布于:2003-04-07 09:13
如题,我在分析ne2000驱动时,发现NdisMSendComplete之后并未显示调用NdisFreePacket(/Buffer)来释放占用的Packet(/Buffer) Descriptor. 由此猜想,NdisMSendComplete中已经做了释放资源的工作,即,可以代替两个Free函数。特此向高手求证。谢谢! A call to NdisMSendComplete causes NDIS to call the ProtocolSendComplete function of the driver that initiated the request with its call to NdisCoSendPackets, NdisSendPackets or NdisSend. The underlying miniport\'s call to NdisMSendComplete releases ownership of the given packet descriptor and associated resources to the protocol driver that originally allocated them. 一般来说谁分配Packet谁释放它。 |
|