ReactOS 0.4.16-dev-297-gc569aee
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 ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
#define NonPagedPool
Definition: env_spec_w32.h:307
#define TAG_ROSSYM
Definition: initkm.c:17
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

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}
static PVOID RosSymAllocMemKM(ULONG_PTR Size)
Definition: initkm.c:20
static VOID RosSymFreeMemKM(PVOID Area)
Definition: initkm.c:26
BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
Definition: zwfile.c:15
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:31
VOID RosSymInit(PROSSYM_CALLBACKS Callbacks)
Definition: init.c:17