timer vs thread

Hi,
I noticed this strange behaviour in my Ndis Miniport driver, which I dont
know why.

If I execute NdisMEthIndicatereceive() from a periodic timer expiry
routine, it works fine; however if I execute the same from a system thread
loop (created by PsCreateSystemThread), it gives me following error in
SoftIce :

“Assertion failed : MINIPORT_LOCK_ACQUIRED((PNDIS_MINIPORT_BLOCK)(…)”

What could be happening?

Thanks in advance.
Raj


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

NdisMEthIndicateReceive must be executed at DISPATCH_LEVEL (if your miniport
is a serialized one). System threads I think don’t execute at that level.

Hassan

From: xxxxx@hotmail.com
Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] timer vs thread
>Date: Tue, 5 Jun 2001 19:57:45
>
>Hi,
>I noticed this strange behaviour in my Ndis Miniport driver, which I dont
>know why.
>
>If I execute NdisMEthIndicatereceive() from a periodic timer expiry
>routine, it works fine; however if I execute the same from a system thread
>loop (created by PsCreateSystemThread), it gives me following error in
>SoftIce :
>
>“Assertion failed : MINIPORT_LOCK_ACQUIRED((PNDIS_MINIPORT_BLOCK)(…)”
>
>What could be happening?
>
>Thanks in advance.
>Raj
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com