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);
49 MmLockPagableCodeSection(IN PVOID AddressWithinSection
)
52 Handle
= MmLocateMemoryAreaByAddress(NULL
,AddressWithinSection
);
53 MmLockPagableSectionByHandle(Handle
);
63 MmLockPagableDataSection(IN PVOID AddressWithinSection
)
66 Handle
= MmLocateMemoryAreaByAddress(NULL
, AddressWithinSection
);
67 MmLockPagableSectionByHandle(Handle
);
76 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle
)
84 MmPageEntireDriver(IN PVOID AddressWithinSection
)
92 MmResetDriverPaging(IN PVOID AddressWithinSection
)