2004-08-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
[reactos.git] / reactos / ntoskrnl / mm / drvlck.c
1 /* $Id: drvlck.c,v 1.6 2004/08/15 16:39:06 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 <ntoskrnl.h>
15 #include <internal/debug.h>
16
17 /* FUNCTIONS *****************************************************************/
18
19 #if 0
20 VOID
21 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle)
22 /*
23 * FUNCTION: Releases a section of driver code or driver data, previously
24 * locked into system space with MmLockPagableCodeSection,
25 * MmLockPagableDataSection or MmLockPagableSectionByHandle
26 * ARGUMENTS:
27 * ImageSectionHandle = Handle returned by MmLockPagableCodeSection or
28 * MmLockPagableDataSection
29 */
30 {
31 // MmUnlockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
32 UNIMPLEMENTED;
33 }
34 #endif
35
36
37 /*
38 * @unimplemented
39 */
40 VOID STDCALL
41 MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle)
42 {
43 // MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
44 UNIMPLEMENTED;
45 }
46
47
48 #if 0
49 PVOID
50 MmLockPagableCodeSection(IN PVOID AddressWithinSection)
51 {
52 PVOID Handle;
53 Handle = MmOpenMemoryAreaByAddress(NULL,AddressWithinSection);
54 MmLockPagableSectionByHandle(Handle);
55 return(Handle);
56 }
57 #endif
58
59
60 /*
61 * @implemented
62 */
63 PVOID STDCALL
64 MmLockPagableDataSection(IN PVOID AddressWithinSection)
65 {
66 PVOID Handle;
67 Handle = MmOpenMemoryAreaByAddress(NULL,AddressWithinSection);
68 MmLockPagableSectionByHandle(Handle);
69 return(Handle);
70 }
71
72
73 /*
74 * @unimplemented
75 */
76 VOID STDCALL
77 MmUnlockPagableImageSection(IN PVOID ImageSectionHandle)
78 {}
79
80
81 /*
82 * @unimplemented
83 */
84 VOID STDCALL
85 MmPageEntireDriver(IN PVOID AddressWithinSection)
86 {}
87
88
89 /*
90 * @unimplemented
91 */
92 VOID STDCALL
93 MmResetDriverPaging(IN PVOID AddressWithinSection)
94 {}
95
96 /* EOF */