mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:45:43 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
48
lib/rossym/initkm.c
Normal file
48
lib/rossym/initkm.c
Normal file
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/rossym/initkm.c
|
||||
* PURPOSE: Initialize library for use in kernel mode
|
||||
*
|
||||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||
*/
|
||||
|
||||
#include <ntdef.h>
|
||||
#undef DECLSPEC_IMPORT
|
||||
#define DECLSPEC_IMPORT
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#define TAG_ROSSYM 'MYSR'
|
||||
|
||||
static PVOID
|
||||
RosSymAllocMemKM(ULONG_PTR Size)
|
||||
{
|
||||
return ExAllocatePoolWithTag(NonPagedPool, Size, TAG_ROSSYM);
|
||||
}
|
||||
|
||||
static VOID
|
||||
RosSymFreeMemKM(PVOID Area)
|
||||
{
|
||||
ExFreePool(Area);
|
||||
}
|
||||
|
||||
VOID
|
||||
RosSymInitKernelMode(VOID)
|
||||
{
|
||||
static ROSSYM_CALLBACKS KmCallbacks =
|
||||
{
|
||||
RosSymAllocMemKM,
|
||||
RosSymFreeMemKM,
|
||||
RosSymZwReadFile,
|
||||
RosSymZwSeekFile
|
||||
};
|
||||
|
||||
RosSymInit(&KmCallbacks);
|
||||
}
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue