Is there a way in kernel mode to determine if your pointer
to nonpaged pool actually points to something that you own?
-----Original Message-----
From: Nate Bushman [mailto:xxxxx@legato.com]
Sent: Wednesday, March 14, 2001 1:53 PM
To: NT Developers Interest List
Subject: [ntdev] RE: MmIsNonPagedSystemAddressValid
Mark, you’re right. I just tested this code, and
MmIsNonPagedSystemAddressValid() returns TRUE at
both Point1 and Point2.
-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, March 14, 2001 1:13 PM
To: NT Developers Interest List
Subject: [ntdev] RE: MmIsNonPagedSystemAddressValid
I vote for TRUE. This function is not answering the question: “do I own this
nonpaged address?” but rather: “is this nonpaged address valid?”.
Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services
-----Original Message-----
From: Nate Bushman [mailto:xxxxx@Legato.com]
Sent: Wednesday, March 14, 2001 2:46 PM
To: NT Developers Interest List
Subject: [ntdev] MmIsNonPagedSystemAddressValid
MmIsNonPagedSystemAddressValid() isn’t really documented (yeah, I know it’s
obsolete). I’d just like to know how it behaves. In the following code
snippet, what would be the value of bMemGood after executing the statements
at Point1 and Point2? Assume that the memory allocation/free succeed.
{
.
.
// Allocate some memory (assume this call works)
pMem = ExAllocatePool(NonPagedPool, sizeof(MY_STRUCT));
.
.
// Point 1
bMemGood = MmIsNonPagedSystemAddressValid(pMem);
.
.
// Free the memory (assume this call works)
ExFreePool(pMem);
.
.
// Point 2
bMemGood = MmIsNonPagedSystemAddressValid(pMem);
.
.
}
You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@legato.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@legato.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com