HI, everyone -
I’ve allocated a page of user mode memory, and I want to write a kernel driver to do something when it is paging in or paging out by OS. So how to get such notifications when swapping in or out?
Is there any idea?
.
Kelev.
HI, everyone -
I’ve allocated a page of user mode memory, and I want to write a kernel driver to do something when it is paging in or paging out by OS. So how to get such notifications when swapping in or out?
Is there any idea?
.
Kelev.
You can’t get changes to the page table. About all you can do is catch
the write to disk (assuming it is written to disk), by either a disk or
a file system filter. Note: this will have to trigger on the physical
page, and depending on what the situation is, that may not be what you
are interested in at all.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
“xxxxx@hotmail.com” wrote in message
news:xxxxx@ntdev:
> HI, everyone -
> I’ve allocated a page of user mode memory, and I want to write a kernel driver to do something when it is paging in or paging out by OS. So how to get such notifications when swapping in or out?
> Is there any idea?
>
> .
> Kelev.
What problem you’re trying to solve?
Why should this matter? if you are doing I/O, the page will be locked
down and you don’t need to worry about it. If the page isn’t locked down,
you shouldn’t be using it from a driver, unless you are at PASSIVE_LEVEL.
For that matter, how does your app know it has allocate A (one) page? Most
allocation schemes either allocate much larger amounts or make no
guarantees about page alignment.
joe
HI, everyone -
I’ve allocated a page of user mode memory, and I want to write a kernel
driver to do something when it is paging in or paging out by OS. So how to
get such notifications when swapping in or out?
Is there any idea?.
Kelev.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
>it is paging in or paging out by OS. So how to get such notifications when swapping in or out?
Impossible.
There is no such notifications in the OS.
Why do you need this?
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com