[ros-kernel] MmMapLockedPages patch review
KJK::Hyperion
noog at libero.it
Sun Mar 7 04:39:13 CET 2004
At 22.08 06/03/2004, you wrote:
>+ Mode = UserMode;
>+ CurrentProcess = PsGetCurrentProcess();
>+ if (Mdl->Process != CurrentProcess)
>+ {
>+ KeAttachProcess(Mdl->Process);
>+ }
MmMapLockedPages(UserMode) maps resident kernel memory into the user-mode
address space (references: the PROCESS_HAS_LOCKED_PAGES and
DRIVER_LEFT_LOCKED_PAGES_IN_PROCESS bugcheck codes, and
<http://www.osr.com/ntinsider/2000/sharing_memory.htm>), and this appears
to do exactly the opposite
More information about the Ros-kernel
mailing list