Which is why you really need the documentation released for the WDK. I note
in your link it’s last entry in “Applies to:” is LongHorn, which became
Vista and Server 2008. The current WDK is at version 7600.16385.1. I do not
find that bogus statement in the last release of the WDK documentation which
is WDK 7600.091209.01.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@emc.com
Sent: Thursday, October 07, 2010 10:30 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Calling KeAcquireSpinLock at DISPATCH_LEVEL
Here is a link to the MSDN document:
http://msdn.microsoft.com/en-us/library/ms810029.aspx
Look for " never call keacquirespinlock from code"
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Thursday, October 07, 2010 11:10 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Calling KeAcquireSpinLock at DISPATCH_LEVEL
Where did you find that documentation? It certainly is bogus.
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
“xxxxx@emc.com” wrote in message
news:xxxxx@ntdev:
> Hi,
>
>
>
> Microsoft documentation specifies:
>
> “Never call KeAcquireSpinLock from code that is running at IRQL =
> DISPATCH_LEVEL, because KeAcquireSpinLock raises the current IRQL to
> DISPATCH_LEVEL. Instead, use KeAcquireSpinLockAtDpcLevel, which does
not
> change the current IRQL”
>
>
>
> If we are already at DISPATCH level and we call KeAcquireSpinLock,
does
> it means the warning is just for the wasted time of raising the IRQL
or
> is there any other danger there ?
>
> From what I saw so far calling KeAcquireSpinLock did not do any damage
> at DISPATCH_LEVEL.
>
>
>
> Thanks,
>
> Shay
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer