3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/mm/drvlck.c
6 * PURPOSE: Managing driver managing
8 * PROGRAMMERS: David Welch (welch@mcmail.com)
11 /* INCLUDES *****************************************************************/
14 #include <internal/debug.h>
16 /* FUNCTIONS *****************************************************************/
20 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle
)
22 * FUNCTION: Releases a section of driver code or driver data, previously
23 * locked into system space with MmLockPagableCodeSection,
24 * MmLockPagableDataSection or MmLockPagableSectionByHandle
26 * ImageSectionHandle = Handle returned by MmLockPagableCodeSection or
27 * MmLockPagableDataSection
30 // MmUnlockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
40 MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle
)
42 // MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
43 DPRINT1("MmLockPagableSectionByHandle is unimplemented\n");
49 MmLockPagableCodeSection(IN PVOID AddressWithinSection
)
52 Handle
= MmLocateMemoryAreaByAddress(NULL
,AddressWithinSection
);
53 MmLockPagableSectionByHandle(Handle
);
63 MmLockPagableDataSection(IN PVOID AddressWithinSection
)
66 Handle
= MmLocateMemoryAreaByAddress(MmGetKernelAddressSpace(),
67 AddressWithinSection
);
68 MmLockPagableSectionByHandle(Handle
);
77 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle
)
85 MmPageEntireDriver(IN PVOID AddressWithinSection
)
93 MmResetDriverPaging(IN PVOID AddressWithinSection
)