Using ERESOURCE when handling PAGING_IO requests

Hello All

I’m reading Rajeev Nagar’s book and there is one issue I cannot understand.
All the samples in the book use ERESOURCE for synchronization (both
MainResource and PagingIoResource are ERESOURCEs), including when handling
PAGING_IO requests . However, while the book says that ERESOURCEs can be
manipulated at IRQL <= DISPATCH_LEVEL, according to the DDK ERESOURCE
functions can be called at IRQL <= APC_LEVEL, so it becomes impossible to
use these functions when handling PAGING_IO requests, since these requests
can be received at DISPATCH_LEVEL.

Am I missing something?

Thanks,

Gregory

Paging I/O operations do not arrive at DISPATCH_LEVEL - they either
arrive at PASSIVE_LEVEL or at APC_LEVEL.

Tony

Tony Mason

Consulting Partner

OSR Open Systems Resources, Inc.

http://www.osr.com http:</http:>


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory Dardyk
Sent: Sunday, February 11, 2007 1:34 AM
To: ntfsd redirect
Subject: [ntfsd] Using ERESOURCE when handling PAGING_IO requests

Hello All

I’m reading Rajeev Nagar’s book and there is one issue I cannot
understand. All the samples in the book use ERESOURCE for
synchronization (both MainResource and PagingIoResource are ERESOURCEs),
including when handling PAGING_IO requests . However, while the book
says that ERESOURCEs can be manipulated at IRQL <= DISPATCH_LEVEL,
according to the DDK ERESOURCE functions can be called at IRQL <=
APC_LEVEL, so it becomes impossible to use these functions when handling
PAGING_IO requests, since these requests can be received at
DISPATCH_LEVEL.

Am I missing something?

Thanks,

Gregory


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com