Filter Driver to speed up access to files?

>If I allocate 256MB of pages ( assuming it’s available and successful)

using MmAllocatePagesforMdl. what API should I >use just to map say for
example about 16MB of pages to kernel space

IoBuildPartialMdl can be used to build an MDL to describe the smaller range
and MmMapLockedPagesSpecifyCache can be used to map the new MDL.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

wrote in message news:xxxxx@ntdev…
>>MmAllocatePagesForMdl doesn’t use nonpaged pool. It obtains pages from the
>>standby/free/zeroed >lists, so you can technically allocate as much memory
>>as is currently available in the system (if it’s >more than 4 GB then
>>you’ll need to do multiple allocations, because an MDL can only describe
>>up to 4 >GB worth of pages).
>
> If I allocate 256MB of pages ( assuming it’s available and successful)
> using MmAllocatePagesforMdl. what API should I use just to map say for
> example about 16MB of pages to kernel space. Sort of like a window. And
> then after doing the copy to user buffer, I can unmap the pages again.
>
>