MmProbeAndLockPages - Proble.

Hi,

I’m using MmProbeAndLockPages on an Mdl built for a user mode buffer.
And after examining the DDK-DOCU again I found the following in the
MmProbeAndLockPages documentation:


Callers of MmProbeAndLockPages must be running at IRQL < DISPATCH_LEVEL for
pageable addresses, or at IRQL <= DISPATCH_LEVEL for nonpageable addresses.

As my address is from a user mode application, it is pageable, so I must
not call this MmProbeAndLockPages(…), but where should I call it then?
Do I need to call it in a worker-thread/ workitem and wait for it to be
completed?

Best Regards
Michael

Well that won’t help, as you can’t wait at DISPATCH_LEVEL. You need to call
MmProbeAndLockPages when you first encounter the IRP, in your DispatchIoctl
routine, when you should be at PASSIVE_LEVEL. Also, your earlier code
sniglet appeared to be calling both MmProbeAndLockPages and
MmMapLockedPages, why is that? MmProbeAndLockPages ought to be sufficient by
itself.

-----Original Message-----
From: xxxxx@sonydadc.com [mailto:xxxxx@sonydadc.com]
Sent: Friday, May 02, 2003 10:56 AM
To: NT Developers Interest List
Subject: [ntdev] MmProbeAndLockPages - Proble.

Hi,

I’m using MmProbeAndLockPages on an Mdl built for a user mode
buffer. And after examining the DDK-DOCU again I found the
following in the MmProbeAndLockPages documentation:


> Callers of MmProbeAndLockPages must be running at IRQL <
> DISPATCH_LEVEL for pageable addresses, or at IRQL <=
> DISPATCH_LEVEL for nonpageable addresses.

As my address is from a user mode application, it is
pageable, so I must not call this MmProbeAndLockPages(…),
but where should I call it then? Do I need to call it in a
worker-thread/ workitem and wait for it to be completed?

Best Regards
Michael


You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com