3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/io/drvlck.c
6 * PURPOSE: Managing driver managing
7 * PROGRAMMER: David Welch (welch@mcmail.com)
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
15 #include <internal/mm.h>
17 #include <internal/debug.h>
19 /* FUNCTIONS *****************************************************************/
23 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle)
25 * FUNCTION: Releases a section of driver code or driver data, previously
26 * locked into system space with MmLockPagableCodeSection,
27 * MmLockPagableDataSection or MmLockPagableSectionByHandle
29 * ImageSectionHandle = Handle returned by MmLockPagableCodeSection or
30 * MmLockPagableDataSection
33 // MmUnlockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
40 MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle)
42 // MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
49 MmLockPagableCodeSection(IN PVOID AddressWithinSection)
52 Handle = MmOpenMemoryAreaByAddress(NULL,AddressWithinSection);
53 MmLockPagableSectionByHandle(Handle);
60 MmLockPagableDataSection(IN PVOID AddressWithinSection)
63 Handle = MmOpenMemoryAreaByAddress(NULL,AddressWithinSection);
64 MmLockPagableSectionByHandle(Handle);
70 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle)
76 MmPageEntireDriver(IN PVOID AddressWithinSection)
82 MmResetDriverPaging(IN PVOID AddressWithinSection)