Reverted latest changes.
[reactos.git] / reactos / ntoskrnl / mm / drvlck.c
1 /* $Id: drvlck.c,v 1.3 2002/09/08 10:23:32 chorns Exp $
2 *
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)
8 * UPDATE HISTORY:
9 * Created 22/05/98
10 */
11
12 /* INCLUDES *****************************************************************/
13
14 #include <ddk/ntddk.h>
15 #include <internal/mm.h>
16
17 #include <internal/debug.h>
18
19 /* FUNCTIONS *****************************************************************/
20
21 #if 0
22 VOID
23 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle)
24 /*
25 * FUNCTION: Releases a section of driver code or driver data, previously
26 * locked into system space with MmLockPagableCodeSection,
27 * MmLockPagableDataSection or MmLockPagableSectionByHandle
28 * ARGUMENTS:
29 * ImageSectionHandle = Handle returned by MmLockPagableCodeSection or
30 * MmLockPagableDataSection
31 */
32 {
33 // MmUnlockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
34 UNIMPLEMENTED;
35 }
36 #endif
37
38
39 VOID STDCALL
40 MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle)
41 {
42 // MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
43 UNIMPLEMENTED;
44 }
45
46
47 #if 0
48 PVOID
49 MmLockPagableCodeSection(IN PVOID AddressWithinSection)
50 {
51 PVOID Handle;
52 Handle = MmOpenMemoryAreaByAddress(NULL,AddressWithinSection);
53 MmLockPagableSectionByHandle(Handle);
54 return(Handle);
55 }
56 #endif
57
58
59 PVOID STDCALL
60 MmLockPagableDataSection(IN PVOID AddressWithinSection)
61 {
62 PVOID Handle;
63 Handle = MmOpenMemoryAreaByAddress(NULL,AddressWithinSection);
64 MmLockPagableSectionByHandle(Handle);
65 return(Handle);
66 }
67
68
69 VOID STDCALL
70 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle)
71 {
72 }
73
74
75 VOID STDCALL
76 MmPageEntireDriver(IN PVOID AddressWithinSection)
77 {
78 }
79
80
81 VOID STDCALL
82 MmResetDriverPaging(IN PVOID AddressWithinSection)
83 {
84 }
85
86 /* EOF */