Hi everyone!
How can I synchronize “manual” MmFlush/CcPurge with the system’s one? Lets
say I have an FO
that I would like to purge, so I’m acquiring it exclusively and call
MmFlush/CcPurge on its sections.
But if at the same time system does same thing one of us will bugcheck (I
guess) because FO
will be gone after first purging. So, what would be the right way to do this
sync. I was thinking
about ObRefing FO, but it doesn’t seem helpful since if system’s purge is
already in progress
FO will be gone as soon as system’s purge is completed. So, I may ObRefing
FO that already has
0 refcount and is about to be destroyed. I would appreciate any advice on
that matter.
TIA,
Vladimir