ReactOS  0.4.15-dev-1386-g5cb9f87
initkm.c File Reference
#include <ntdef.h>
#include <wdm.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
Include dependency graph for initkm.c:

Go to the source code of this file.

Macros

#define DECLSPEC_IMPORT
 
#define TAG_ROSSYM   'MYSR'
 

Functions

static PVOID RosSymAllocMemKM (ULONG_PTR Size)
 
static VOID RosSymFreeMemKM (PVOID Area)
 
VOID RosSymInitKernelMode (VOID)
 

Macro Definition Documentation

◆ DECLSPEC_IMPORT

#define DECLSPEC_IMPORT

Definition at line 12 of file initkm.c.

◆ TAG_ROSSYM

#define TAG_ROSSYM   'MYSR'

Definition at line 17 of file initkm.c.

Function Documentation

◆ RosSymAllocMemKM()

static PVOID RosSymAllocMemKM ( ULONG_PTR  Size)
static

Definition at line 20 of file initkm.c.

21 {
23 }
#define TAG_ROSSYM
Definition: initkm.c:17
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350

Referenced by RosSymInitKernelMode().

◆ RosSymFreeMemKM()

static VOID RosSymFreeMemKM ( PVOID  Area)
static

Definition at line 26 of file initkm.c.

27 {
28  ExFreePool(Area);
29 }
#define ExFreePool(addr)
Definition: env_spec_w32.h:352

Referenced by RosSymInitKernelMode().

◆ RosSymInitKernelMode()

VOID RosSymInitKernelMode ( VOID  )

Definition at line 32 of file initkm.c.

33 {
34  static ROSSYM_CALLBACKS KmCallbacks =
35  {
40  };
41 
42  RosSymInit(&KmCallbacks);
43 }
BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
Definition: zwfile.c:16
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:32
static PVOID RosSymAllocMemKM(ULONG_PTR Size)
Definition: initkm.c:20
static VOID RosSymFreeMemKM(PVOID Area)
Definition: initkm.c:26
VOID RosSymInit(PROSSYM_CALLBACKS Callbacks)
Definition: init.c:17