+ntoskrnl/mm/mdl.c
authorshort <>
Tue, 5 Nov 2002 14:18:41 +0000 (14:18 +0000)
committershort <>
Tue, 5 Nov 2002 14:18:41 +0000 (14:18 +0000)
+MmSizeOfMdl()

ntoskrnl/mm/mdl.c

index 9ce47a3..e5d1b9e 100644 (file)
@@ -21,6 +21,7 @@
 
 /* GLOBALS *******************************************************************/
 
+#ifndef LIBCAPTIVE
 #define TAG_MDL    TAG('M', 'M', 'D', 'L')
 
 #define MI_MDL_MAPPING_REGION_SIZE       (256*1024*1024)
@@ -29,9 +30,12 @@ static PVOID MiMdlMappingRegionBase = NULL;
 static PULONG MiMdlMappingRegionAllocMap = NULL;
 static ULONG MiMdlMappingRegionHighWaterMark = 0;
 static KSPIN_LOCK MiMdlMappingRegionLock;
+#endif /* LIBCAPTIVE */
 
 /* FUNCTIONS *****************************************************************/
 
+#ifndef LIBCAPTIVE
+
 VOID
 MmInitializeMdlImplementation(VOID)
 {
@@ -358,6 +362,7 @@ VOID STDCALL MmProbeAndLockPages (PMDL Mdl,
    Mdl->MdlFlags = Mdl->MdlFlags | MDL_PAGES_LOCKED;
 }
 
+#endif /* LIBCAPTIVE */
 
 ULONG STDCALL MmSizeOfMdl (PVOID       Base,
                           ULONG        Length)
@@ -376,6 +381,7 @@ ULONG STDCALL MmSizeOfMdl (PVOID    Base,
    return(sizeof(MDL)+(len*sizeof(ULONG)));
 }
 
+#ifndef LIBCAPTIVE
 
 VOID STDCALL 
 MmBuildMdlForNonPagedPool (PMDL        Mdl)
@@ -441,6 +447,8 @@ MmMapMemoryDumpMdl (PVOID   Unknown0)
    UNIMPLEMENTED;
 }
 
+#endif /* LIBCAPTIVE */
+
 /* EOF */