mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:02:56 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
45
sdk/lib/rossym/initkm.c
Normal file
45
sdk/lib/rossym/initkm.c
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* 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 <wdm.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.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