Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygeninitkm.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS kernel 00004 * FILE: lib/rossym/initkm.c 00005 * PURPOSE: Initialize library for use in kernel mode 00006 * 00007 * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) 00008 */ 00009 00010 #include <ntdef.h> 00011 #undef DECLSPEC_IMPORT 00012 #define DECLSPEC_IMPORT 00013 #include <ntddk.h> 00014 #include <reactos/rossym.h> 00015 #include "rossympriv.h" 00016 00017 #define NDEBUG 00018 #include <debug.h> 00019 00020 #define TAG_ROSSYM 'MYSR' 00021 00022 static PVOID 00023 RosSymAllocMemKM(ULONG_PTR Size) 00024 { 00025 return ExAllocatePoolWithTag(NonPagedPool, Size, TAG_ROSSYM); 00026 } 00027 00028 static VOID 00029 RosSymFreeMemKM(PVOID Area) 00030 { 00031 ExFreePool(Area); 00032 } 00033 00034 VOID 00035 RosSymInitKernelMode(VOID) 00036 { 00037 static ROSSYM_CALLBACKS KmCallbacks = 00038 { 00039 RosSymAllocMemKM, 00040 RosSymFreeMemKM, 00041 RosSymZwReadFile, 00042 RosSymZwSeekFile 00043 }; 00044 00045 RosSymInit(&KmCallbacks); 00046 } 00047 00048 /* EOF */ Generated on Sat May 26 2012 04:35:19 for ReactOS by
1.7.6.1
|