Maxim
Tue May 04 07:24:47 CDT 2004
You do not need contiguous memory for this.
The general principle is:
- the memory allocator inside the kernel is ExAllocatePoolWithTag or - for
DMAable memory - ->AllocateCommonBuffer.
- forget about MmAllocate funcitons, they are for VERY special uses only.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"wei" <anonymous@discussions.microsoft.com> wrote in message
news:B99187B8-C8F4-4160-9B26-C6B5A18FC749@microsoft.com...
> I will map a memory between a driver and a user-mode application in my
driver.
>
>
> The pseudo code:
> Step 1: MmAllocateContiguousMemory
> Step 2: IoAllocateMdl
> Step 3: MmProbeAndLockPages
>
>
> Is any potential dangerous when map memory is in non -paged pool?
>
> Thanks
>