ReactOS  0.4.14-dev-50-g13bb5e2
pool.cpp File Reference
#include "private.hpp"
#include <debug.h>
Include dependency graph for pool.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

PVOID AllocateItem (IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes, IN ULONG Tag)
 
VOID FreeItem (IN PVOID Item, IN ULONG Tag)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file pool.cpp.

Function Documentation

◆ AllocateItem()

PVOID AllocateItem ( IN POOL_TYPE  PoolType,
IN SIZE_T  NumberOfBytes,
IN ULONG  Tag 
)

Definition at line 18 of file pool.cpp.

22 {
24  if (!Item)
25  return Item;
26 
28  return Item;
29 }
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
IN ULONG IN ULONG Tag
Definition: evtlib.h:159
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
Definition: iotypes.h:998
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444

◆ FreeItem()

VOID FreeItem ( IN PVOID  Item,
IN ULONG  Tag 
)

Definition at line 32 of file pool.cpp.

35 {
36 
37  ExFreePoolWithTag(Item, Tag);
38 }
IN ULONG IN ULONG Tag
Definition: evtlib.h:159
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099