Hi,
while i was looking at the e100bex miniport driver samples i noticed
that MP_FREE_SEND_PACKET releases the SendLock using
NdisReleaseSpinLock. However MP_FREE_SEND_PACKET is invoked within
MpHandleSendInterrupt, which is called with the SendLock acquired (using
the Dpr version of the Acquire spinlock function).
Can a spinlock acquired using NdisDprAcquireSpinlock be released using
NdisReleaseSpinlock (instead of NdisDprReleaseSpinlock). What’ s the
impact of such uses. Is it legal, or is this a bug?
Best Regards
Yagmur Konuslu
It is a bug if your observation is accurate.
NdisDprAcquireSpinLock is equivalent to KeAcquireSpinLockAtDpcLevel. The
lock must be released by NdisDprReleaseSpinLock (equivalent to
KeReleaseSpinLockFromDpcLevel).
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-205044-
xxxxx@lists.osr.com] On Behalf Of Yagmur Konuslu
Sent: March 29, 2005 5:30 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] E100bex Sample
Hi,
while i was looking at the e100bex miniport driver samples i noticed
that MP_FREE_SEND_PACKET releases the SendLock using
NdisReleaseSpinLock. However MP_FREE_SEND_PACKET is invoked within
MpHandleSendInterrupt, which is called with the SendLock acquired (using
the Dpr version of the Acquire spinlock function).
Can a spinlock acquired using NdisDprAcquireSpinlock be released using
NdisReleaseSpinlock (instead of NdisDprReleaseSpinlock). What’ s the
impact of such uses. Is it legal, or is this a bug?
Best Regards
Yagmur Konuslu
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@ati.com
To unsubscribe send a blank email to xxxxx@lists.osr.com