about InterlockedIncrement

Hi, all

in DDK, it is said that “Callers of InterlockedIncrement can be running at any IRQL”, and also that “InterlockedIncrement can be safely used on pageable data”.

but how can the caller of InterlockedIncrement that running above DISPATCH_LEVEL access a pageable data? please explain this for me, thanks.

dong dawoo


ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ
ÑÅ»¢ÖúÊÖ-ËÑË÷¡¢É±¶¾¡¢·ÀɧÈÅ

The two statements are independant, if you are using pageable data the call
must be running < DISPATCH_LEVEL.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“identifier scorpio” wrote in message
news:xxxxx@ntdev…
> Hi, all
>
> in DDK, it is said that “Callers of InterlockedIncrement can be running
> at any IRQL”, and also that “InterlockedIncrement can be safely used on
> pageable data”.
>
> but how can the caller of InterlockedIncrement that running above
> DISPATCH_LEVEL access a pageable data? please explain this for me, thanks.
>
> dong dawoo
>
>
> ---------------------------------
> ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ
> ÑÅ»¢ÖúÊÖ-ËÑË÷¡¢É±¶¾¡¢·ÀɧÈÅ

>also that "InterlockedIncrement can be safely used

pageable data".

In this case, you must be on < DISPATCH.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com