ReactOS  0.4.13-dev-464-g6b95727
pool.cpp
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Kernel Streaming
4  * FILE: drivers/wdm/audio/backpln/portcls/pool.cpp
5  * PURPOSE: Memory functions
6  * PROGRAMMER: Johannes Anderwald
7  */
8 
9 #include "private.hpp"
10 
11 #ifndef YDEBUG
12 #define NDEBUG
13 #endif
14 
15 #include <debug.h>
16 
17 PVOID
21  IN ULONG Tag)
22 {
24  if (!Item)
25  return Item;
26 
28  return Item;
29 }
30 
31 VOID
33  IN PVOID Item,
34  IN ULONG Tag)
35 {
36 
37  ExFreePoolWithTag(Item, Tag);
38 }
#define IN
Definition: typedefs.h:38
VOID FreeItem(IN PVOID Item, IN ULONG Tag)
Definition: pool.cpp:32
INT POOL_TYPE
Definition: typedefs.h:76
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
PVOID AllocateItem(IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes, IN ULONG Tag)
Definition: pool.cpp:18
ULONG_PTR SIZE_T
Definition: typedefs.h:78
IN ULONG IN ULONG Tag
Definition: evtlib.h:159
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
Definition: iotypes.h:997
unsigned int ULONG
Definition: retypes.h:1
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444