Determining if a VA corresponds to locked down memory

Is there a way to determine if a buffer has been locked down.

I see two scenarios, but have no way to determine (at any given time) which
scenario I’m seeing.

  1. A buffer is not locked down. In this case I need to call
    MmGetSystemAddressForMdlSafe to lock.
  2. A buffer is already locked, so I need to leave it alone.

Thanks,

Daniel

You can chect the MDL MdlFlags field. Look for definitions in NTDDK.H. This
technique was used in at least one version of the NTIFS RDR2 samples.

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - TDI Client - Windows 95 Redirector
http:

----- Original Message -----
From: Nemiroff, Daniel
To: NT Developers Interest List
Sent: Thursday, May 18, 2000 8:35 PM
Subject: [ntdev] Determining if a VA corresponds to locked down memory

> Is there a way to determine if a buffer has been locked down.
>
> I see two scenarios, but have no way to determine (at any given time)
which
> scenario I’m seeing.
>
> 1) A buffer is not locked down. In this case I need to call
> MmGetSystemAddressForMdlSafe to lock.
> 2) A buffer is already locked, so I need to leave it alone.
></http:>