1 /* $Id: drvlck.c,v 1.6 2004/08/15 16:39:06 chorns Exp $
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 *****************************************************************/
15 #include <internal/debug.h>
17 /* FUNCTIONS *****************************************************************/
21 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle
)
23 * FUNCTION: Releases a section of driver code or driver data, previously
24 * locked into system space with MmLockPagableCodeSection,
25 * MmLockPagableDataSection or MmLockPagableSectionByHandle
27 * ImageSectionHandle = Handle returned by MmLockPagableCodeSection or
28 * MmLockPagableDataSection
31 // MmUnlockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
41 MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle
)
43 // MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
50 MmLockPagableCodeSection(IN PVOID AddressWithinSection
)
53 Handle
= MmOpenMemoryAreaByAddress(NULL
,AddressWithinSection
);
54 MmLockPagableSectionByHandle(Handle
);
64 MmLockPagableDataSection(IN PVOID AddressWithinSection
)
67 Handle
= MmOpenMemoryAreaByAddress(NULL
,AddressWithinSection
);
68 MmLockPagableSectionByHandle(Handle
);
77 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle
)
85 MmPageEntireDriver(IN PVOID AddressWithinSection
)
93 MmResetDriverPaging(IN PVOID AddressWithinSection
)